Commit 86b9fe1b authored by Mike Hibler's avatar Mike Hibler
Browse files

If GetBootLog returns success (0) but there is no long, return a valid ref.

We set the passed in ref to "" in the case of no log (rather than leaving
it undefined).
parent 635d710f
...@@ -1806,11 +1806,13 @@ sub GetBootLog($$) ...@@ -1806,11 +1806,13 @@ sub GetBootLog($$)
"where node_id='$node_id'"); "where node_id='$node_id'");
return -1 return -1
if (! $query_result); if (! $query_result);
return 0
if (! $query_result->numrows);
if ($query_result->numrows) {
my ($bootlog) = $query_result->fetchrow_array(); my ($bootlog) = $query_result->fetchrow_array();
$$pref = $bootlog; $$pref = $bootlog;
} else {
$$pref = "";
}
return 0; return 0;
} }
......
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