fix for bug 2894644: check empty noderange, if empty noderange, returns

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4528 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2009-11-10 03:29:08 +00:00
parent 10a83c5567
commit 4c77f42d1b

View File

@ -283,6 +283,13 @@ sub processArgs
{
@::noderange = &noderange($a, 0); # mkdef could not spport regular expression
}
if (scalar(@::noderange) == 0)
{
my $rsp;
$rsp->{data}->[0] = "No node in \'$a\', check the noderange syntax.";
xCAT::MsgUtils->message("E", $rsp, $::callback);
return 1;
}
}
}