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

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($$) {
# XXX defensive programming, this happened once
if (!defined($bootopmode)) {
info("$node: TBBootWhat did not return op_mode ".
"(osid=$bootosid)!? Remaining in $mode");
info("$node: BootWhat says $bootosid (mode $bootopmode).\n");
DBQueryFatal("update nodes set osid='$bootosid' ".
"where node_id='$node'");
Supports Markdown
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