support arguments for postscripts

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9803 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2011-06-15 14:09:46 +00:00
parent 384a4a1f6a
commit f871ecbdad

View File

@ -368,11 +368,12 @@ sub preprocess_updatenode
foreach (@posts)
{
if (!-e "$installdir/postscripts/$_")
my @aa=split(' ', $_);
if (!-e "$installdir/postscripts/$aa[0]")
{
my $rsp = {};
$rsp->{data}->[0] =
"The postcript $installdir/postscripts/$_ does not exist.";
"The postcript $installdir/postscripts/$aa[0] does not exist.";
$callback->($rsp);
return \@requests;
}