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:
jbjohnso 2008-03-05 16:31:35 +00:00
parent 60d512add8
commit 848c7b6e8c
2 changed files with 4 additions and 1 deletions

View File

@ -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")
{

View File

@ -449,6 +449,9 @@ sub plugin_command {
}
return ($rsp);
}
unless (@nodes) {
$req->{emptynoderange} = [1];
}
}
if (@nodes) { $req->{node} = \@nodes; }
my %unhandled_nodes;