Fix sourceforge bug #1908128, nodels returning all nodes instead of none on noderange with zero members
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@680 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
60d512add8
commit
848c7b6e8c
@ -85,7 +85,7 @@ sub process_request
|
||||
|
||||
if ($command eq "nodels")
|
||||
{
|
||||
return nodels($nodes, $args, $callback, $request->{noderange}->[0]);
|
||||
return nodels($nodes, $args, $callback, $request->{emptynoderange}->[0]);
|
||||
}
|
||||
elsif ($command eq "noderm" or $command eq "rmnode")
|
||||
{
|
||||
|
@ -449,6 +449,9 @@ sub plugin_command {
|
||||
}
|
||||
return ($rsp);
|
||||
}
|
||||
unless (@nodes) {
|
||||
$req->{emptynoderange} = [1];
|
||||
}
|
||||
}
|
||||
if (@nodes) { $req->{node} = \@nodes; }
|
||||
my %unhandled_nodes;
|
||||
|
Loading…
Reference in New Issue
Block a user