Commit 2810b0e1 authored by Mike Hibler's avatar Mike Hibler

Use Node method to get event state rather than libdb function.

The former will filter out the bogus NULLs we occasionally see.
parent 7e4caf7b
......@@ -585,7 +585,7 @@ sub RebootNode {
# stated is controlling the timeouts. Eventually stated gives up and uses
# the -k option to force a power cycle.
#
if (! TBGetNodeEventState($pc, \$nodestate)) {
if ($nodeobject->GetEventState(\$nodestate)) {
info("$pc has no event state: power cycle");
print STDERR "*** reboot ($pc): no event state; will power cycle.\n"
if $debug;
......
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