add check if dcp -i chosen on AIX, exit with error

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3754 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2009-07-10 14:18:46 +00:00
parent 7a5f105a2b
commit 529e858d84

View File

@ -3984,6 +3984,15 @@ sub parse_and_run_dcp
xCAT::DSHCLI->show_dsh_config;
return 0;
}
if (defined($options{'rootimg'})) {
if (xCAT::Utils->isAIX()) {
my $rsp = ();
$rsp->{data}->[0] = "The -i option is not supported on AIX.";
xCAT::MsgUtils->message("E", $rsp, $::CALLBACK, 1);
return;
}
}
if ((!(defined(@$nodes))) && (!(defined($options{'rootimg'}))))
{ # no nodes and not -i option, error
my $rsp = ();