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:
parent
ab3f449548
commit
5db248d14e
@ -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};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user