fix for bug 2974299: check spaces in the noderange syntax
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5553 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
2dcb36dcb4
commit
6e46cfff6a
@ -284,12 +284,22 @@ sub processArgs
|
||||
#
|
||||
|
||||
# - put attr=val operands in ATTRS hash
|
||||
my $noderangespace = 0;
|
||||
while (my $a = shift(@ARGV))
|
||||
{
|
||||
|
||||
if (!($a =~ /=/))
|
||||
{
|
||||
|
||||
# can not have spaces in the noderange
|
||||
if ($noderangespace)
|
||||
{
|
||||
my $rsp;
|
||||
$rsp->{data}->[0] = "noderange can not contain spaces.";
|
||||
xCAT::MsgUtils->message("E", $rsp, $::callback);
|
||||
return 2;
|
||||
}
|
||||
$noderangespace++;
|
||||
# the first arg could be a noderange or a list of args
|
||||
if (($::opt_t) && ($::opt_t ne 'node'))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user