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@10315 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
da99a9fc05
commit
5381851d96
@ -858,6 +858,17 @@ sub plugin_command {
|
||||
unless (@nodes) {
|
||||
$req->{emptynoderange} = [1];
|
||||
}
|
||||
|
||||
if(@nodes == 0) {
|
||||
my $rsp = {errorcode=>1,error=>"NO node or noderange specified"};
|
||||
$rsp->{serverdone} = {};
|
||||
if ($sock) {
|
||||
print $sock XMLout($rsp,RootName=>'xcatresponse' ,NoAttr=>1);
|
||||
}
|
||||
return ($rsp);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
if (@nodes) { $req->{node} = \@nodes; }
|
||||
my %unhandled_nodes;
|
||||
|
Loading…
Reference in New Issue
Block a user