fix setNodesAttribs1 in non-bypass mode

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12415 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2012-04-30 19:36:48 +00:00
parent fdc9202229
commit 245dd3a189

View File

@ -2379,16 +2379,11 @@ sub setNodesAttribs1
}
}
}
my @nodes = xCAT::NodeRange::noderange($request->{noderange}->[0]);
if (xCAT::NodeRange::nodesmissed()) {
my $rsp = {errorcode=>1,error=>"Invalid nodes in noderange:".join(',',xCAT::NodeRange::nodesmissed)};
$cb->(\%rsp);
if (@$node) {
&nodech(\@$node,$newrequest->{arg},$cb,0);
} else {
my $rsp = {errorcode=>1,error=>"No nodes in noderange"};
$cb->(\%rsp);
}
if (@nodes) {
$newrequest->{node} = \@nodes;
}
# call nodech
&nodech($newrequest->{node},$newrequest->{arg},$cb,0);
return;
}