From 1f401f395238431bcd81544e1515e4d8bfb7dd4c Mon Sep 17 00:00:00 2001 From: ertaozh Date: Fri, 11 May 2018 03:50:25 -0400 Subject: [PATCH] Refine the PR in case ondiscover=xxx can not be fully set to currstate --- xCAT-server/lib/xcat/plugins/destiny.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/destiny.pm b/xCAT-server/lib/xcat/plugins/destiny.pm index 6890a63bc..69c233ebf 100755 --- a/xCAT-server/lib/xcat/plugins/destiny.pm +++ b/xCAT-server/lib/xcat/plugins/destiny.pm @@ -848,9 +848,10 @@ sub nextdestiny { } unless ($ref->{currchain}) { #If no current chain, copy the default $ref->{currchain} = $ref->{chain}; - } else { - if ($ref->{currstate} and ($ref->{currstate} eq $ref->{currchain})) { + } elsif ($ref->{currchain} !~ /[,;]/){ + if ($ref->{currstate} and ($ref->{currchain} =~ /$ref->{currstate}/)) { $ref->{currchain} = 'standby'; + $callnodeset = 0; } } my @chain = split /[,;]/, $ref->{currchain};