check for input of multiple internal postscript names

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14016 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2012-10-15 17:57:45 +00:00
parent a3175f5df1
commit 12c147a5c5

View File

@ -464,11 +464,22 @@ sub preprocess_updatenode
{
my $rsp = {};
$rsp->{data}->[0] =
"The postcript $installdir/postscripts/$aa[0] does not exist.";
"The postscript $installdir/postscripts/$aa[0] does not exist.";
$callback->($rsp);
return;
}
}
} else {
# can only input one internal postscript on call
# updatenode -P defaults-postscripts-start-here
my $arraySize = @posts;
if ($arraySize > 1) { # invalid
my $rsp = {};
$rsp->{data}->[0] =
"Only one internal postscript can be used with -P. Postscripts input were as follows:$postscripts";
$callback->($rsp);
return;
}
}
}
}