fixed 3393278, if noderange is not empty and missed not is empty, at the meantime, the @nodes is also empty, we can make sure that no node/noderange specified in the command line

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10316 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2011-08-18 02:49:25 +00:00
parent 5381851d96
commit 54d8d77159

View File

@ -319,6 +319,11 @@ sub plugin_command {
unless (@nodes) {
$req->{emptynoderange} = [1];
}
if(@nodes == 0 ) {
print "No nodes or noderanges specified\n";
return 1;
}
}
if (@nodes) { $req->{node} = \@nodes; }
my %unhandled_nodes;