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);