-Fix problem where first step of chain was erroneously executed twice

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2282 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-10-03 23:16:57 +00:00
parent 220b3d6c27
commit bb0c55378d

View File

@ -309,9 +309,10 @@ sub getdestiny {
next;
}
unless ($ref->{currstate}) { #Has a record, but not yet in a state...
my @chain = split /,/,$ref->{chain};
$ref->{currstate} = shift @chain;
$chaintab->setNodeAttribs($node,{currstate=>$ref->{currstate}});
return nextdestiny(0); #Becomes a nextdestiny...
# my @chain = split /,/,$ref->{chain};
# $ref->{currstate} = shift @chain;
# $chaintab->setNodeAttribs($node,{currstate=>$ref->{currstate}});
}
my %response;
$response{name}=[$node];