2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-06 10:18:20 +00:00

Do not proceed past boot into standby

Some installers advance the destiny multiple times.
Avoid going off the edge into 'standby' in such scenarios.
This commit is contained in:
Jarrod Johnson
2019-01-18 13:28:29 -05:00
parent 35154ff145
commit aaa9ddd553

View File

@@ -866,7 +866,12 @@ sub nextdestiny {
$ref->{currchain} = $ref->{chain};
} elsif ($ref->{currchain} !~ /[,;]/){
if ($ref->{currstate} and ($ref->{currchain} =~ /$ref->{currstate}/)) {
$ref->{currchain} = 'standby';
if ($ref->{currstate} eq 'boot') {
$ref->{currchain} = 'boot';
}
if ($ref->{currchain} ne 'boot') {
$ref->{currchain} = 'standby';
}
$callnodeset = 0;
}
}