mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-20 02:00:24 +00:00
Merge pull request #5194 from zet809/deal_with_doxcat_loop
Force chain to be standby if only runcmd/ondiscover is specified for chain attribute
This commit is contained in:
@@ -848,6 +848,11 @@ sub nextdestiny {
|
||||
}
|
||||
unless ($ref->{currchain}) { #If no current chain, copy the default
|
||||
$ref->{currchain} = $ref->{chain};
|
||||
} elsif ($ref->{currchain} !~ /[,;]/){
|
||||
if ($ref->{currstate} and ($ref->{currchain} =~ /$ref->{currstate}/)) {
|
||||
$ref->{currchain} = 'standby';
|
||||
$callnodeset = 0;
|
||||
}
|
||||
}
|
||||
my @chain = split /[,;]/, $ref->{currchain};
|
||||
|
||||
|
Reference in New Issue
Block a user