Commit 758bac67 authored by Mike Hibler's avatar Mike Hibler

When rebooting a list of nodes, if one failed and the following node

was successfully rebooted via PXEWAKEUP, that following node would get
the returned status ($?) of the failed node and thus also fail.
parent fa502813
......@@ -371,10 +371,10 @@ sub nodereboot($$)
# Child signaled to us that this node needs a power cycle
push(@needPowercycle, $node);
}
elsif ($?) {
elsif ($mypid != 0 && $?) {
$failed++;
$result->{$node} = -1;
print STDERR "*** reboot ($node): Failed!\n";
print STDERR "*** reboot ($node): Failed ($?)!\n";
}
else {
print STDOUT "reboot ($node): Successful!\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment