From f058ea4621b9a94ccd684fc0e73e36ad6bf363e4 Mon Sep 17 00:00:00 2001 From: lissav Date: Mon, 26 Apr 2010 17:53:32 +0000 Subject: [PATCH] fix error rinstall compute node1 interpreting noderange as compute,node1 feature 2991651 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5885 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/rinstall | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/xCAT-client/bin/rinstall b/xCAT-client/bin/rinstall index 0e2f09d10..eeaa87b86 100755 --- a/xCAT-client/bin/rinstall +++ b/xCAT-client/bin/rinstall @@ -20,7 +20,19 @@ unless (GetOptions( usage; exit 1; } -my $noderange=join(',',@ARGV); +my $arraysize=@ARGV; +if ($arraysize > 1) { + print "noderange invalid\n"; + usage; + exit 1; +} +if ($arraysize == 0) { + print "noderange not supplied\n"; + usage; + exit 1; +} +my $noderange=@ARGV[0]; + my $nodechline = ""; if ($OSVER) { $nodechline = "nodetype.os=$OSVER";