2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 03:32:04 +00:00

Refine the PR in case ondiscover=xxx can not be fully set to currstate

This commit is contained in:
ertaozh 2018-05-11 03:50:25 -04:00
parent 5db248d14e
commit 1f401f3952

View File

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