2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

Force chain to be standby if only runcmd/ondiscover is specified for chain attribute

This commit is contained in:
ertaozh 2018-05-10 04:34:09 -04:00
parent ab3f449548
commit 5db248d14e

View File

@ -848,6 +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})) {
$ref->{currchain} = 'standby';
}
}
my @chain = split /[,;]/, $ref->{currchain};