From bb0c55378d3b0b135238d88324fc19f2cfb7267f Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 3 Oct 2008 23:16:57 +0000 Subject: [PATCH] -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 --- xCAT-server/lib/xcat/plugins/destiny.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/destiny.pm b/xCAT-server/lib/xcat/plugins/destiny.pm index 22adf43c7..90a75493f 100644 --- a/xCAT-server/lib/xcat/plugins/destiny.pm +++ b/xCAT-server/lib/xcat/plugins/destiny.pm @@ -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];