diff --git a/xCAT-server-2.0/lib/xcat/plugins/blade.pm b/xCAT-server-2.0/lib/xcat/plugins/blade.pm index dc399f9b5..a7fcbeffa 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/blade.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/blade.pm @@ -1118,10 +1118,10 @@ sub build_depend { if (defined($ent->{cmd})) { $cmd=$ent->{cmd}; } if (defined($ent->{msdelay})) { $delay=$ent->{msdelay}; } - if (!defined($dep)) { + if (!defined($dep) || !grep(/^@$exargs[0]$/, split /,/, $cmd )) { $no_dp{$node} = 1; } - elsif ( grep(/^@$exargs[0]$/, split /,/, $cmd )) { + else { foreach (split /,/,$dep ) { $dp{$_}{$node} = $delay; }