From f871ecbdadf84a68d661f4ee21292ab4cba2e4fb Mon Sep 17 00:00:00 2001 From: linggao Date: Wed, 15 Jun 2011 14:09:46 +0000 Subject: [PATCH] support arguments for postscripts git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9803 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/updatenode.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/updatenode.pm b/xCAT-server/lib/xcat/plugins/updatenode.pm index 01c84e7ec..b273a0ba8 100644 --- a/xCAT-server/lib/xcat/plugins/updatenode.pm +++ b/xCAT-server/lib/xcat/plugins/updatenode.pm @@ -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; }