From 245dd3a1890bddad47c50bcd5482007e8e8728db Mon Sep 17 00:00:00 2001 From: lissav Date: Mon, 30 Apr 2012 19:36:48 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/tabutils.pm | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/tabutils.pm b/xCAT-server/lib/xcat/plugins/tabutils.pm index 9c99f5e08..94f4874d2 100644 --- a/xCAT-server/lib/xcat/plugins/tabutils.pm +++ b/xCAT-server/lib/xcat/plugins/tabutils.pm @@ -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; }