From eb2a3ea42fd961f62c243a837be3089e4ed5548b Mon Sep 17 00:00:00 2001 From: linggao Date: Thu, 21 Jan 2010 22:37:30 +0000 Subject: [PATCH] prescripts will key of A for any actions that has A=B format git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5010 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/prescripts.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/prescripts.pm b/xCAT-server/lib/xcat/plugins/prescripts.pm index 6ce49bba6..dbbb930f5 100644 --- a/xCAT-server/lib/xcat/plugins/prescripts.pm +++ b/xCAT-server/lib/xcat/plugins/prescripts.pm @@ -251,7 +251,10 @@ sub runendpre #------------------------------------------------------- sub getprescripts { - my ($nodes, $action, $colname) = @_; + my ($nodes, $tmp_action, $colname) = @_; + my @action_a=split('=',$tmp_action); + my $action=$action_a[0]; + my %ret=(); if ($nodes && (@$nodes>0)) { my $tab = xCAT::Table->new('prescripts',-create=>1);