Commit 49a93222 authored by Mike Hibler's avatar Mike Hibler

Defense against undefined bootopmode in BOOTING case.

Cannot figure out why this happened, but at least don't crash if it
happens again!
parent ae77d53a
......@@ -869,6 +869,13 @@ sub stateTransition($$) {
next;
}
# XXX defensive programming, this happened once
if (!defined($bootopmode)) {
info("$node: TBBootWhat did not return op_mode ".
"(osid=$bootosid)!? Remaining in $mode");
next;
}
info("$node: BootWhat says $bootosid (mode $bootopmode).\n");
DBQueryFatal("update nodes set osid='$bootosid' ".
"where node_id='$node'");
......
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