Commit 44937617 authored by Mike Hibler's avatar Mike Hibler

avoid an undefined variable warning

parent 8da9b1bd
......@@ -970,7 +970,7 @@ sub osload_setupswapinfo($$;@)
# them below. This is the only reason we are doing this here rather
# than as part of the above query.
#
if ($savedisk == 0 || $erole ne "node") {
if (!defined($savedisk) || $savedisk == 0 || $erole ne "node") {
delete $nodeinfo{$node};
next;
}
......
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