From 3724f333fe22eb87e4bdf82b06ab6426cf0b275f Mon Sep 17 00:00:00 2001 From: immarvin Date: Fri, 11 Oct 2013 01:21:25 -0700 Subject: [PATCH] fix defect #3830 [DEV] rinstall complains inappropriate message --- xCAT-client/bin/rinstall | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xCAT-client/bin/rinstall b/xCAT-client/bin/rinstall index 8ae0627f9..fad798fdb 100755 --- a/xCAT-client/bin/rinstall +++ b/xCAT-client/bin/rinstall @@ -77,6 +77,7 @@ sub checkoption{ } +@allnodes=noderange($noderange); if($OSIMAGE){ # -O|--osimage is specified, ignore any -a,-p,-o options, @@ -99,7 +100,7 @@ if($OSIMAGE){ # 3) if nodetype.provmethod is not set, use 'install' as the default value # group the nodes according to the nodetype.provmethod - @allnodes=noderange($noderange); + foreach(@allnodes){ my $tab=xCAT::Table->new("nodetype"); my $nthash=$tab->getNodeAttribs($_,['provmethod']); @@ -186,7 +187,7 @@ if (basename($0) =~ /rinstall/) { # for rinstall, the -c|--console option can provide the remote console for only 1 node if ($CONSOLE) { if(scalar @allnodes ne 1){ - xCAT::MsgUtils->message("rinstall [-c|--console] will only work if there is only one node in the noderange. See winstall(8) for consoles on multiple systems"); + xCAT::MsgUtils->message("E","rinstall [-c|--console] will only work if there is only one node in the noderange. See winstall(8) for consoles on multiple systems"); exit 1; } exec("rcons $noderange");