Handle nodes in dependency table without valid "cmd" attribute - Line #1121

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@953 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sakolish 2008-03-31 18:38:20 +00:00
parent 8d35b2aa8c
commit 29a5f378f5

View File

@ -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;
}