mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-22 11:42:05 +00:00
Refine the PR in case ondiscover=xxx can not be fully set to currstate
This commit is contained in:
parent
5db248d14e
commit
1f401f3952
@ -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};
|
||||
|
Loading…
x
Reference in New Issue
Block a user