Commit d0a5f9cd authored by Mike Hibler's avatar Mike Hibler
Browse files

Account for case of $self not being an object.

parent 2c33fc02
......@@ -1715,8 +1715,9 @@ sub ClearBootAttributes($)
"where node_id='$node_id'")
or return -1;
if ($self->boot_method() eq "pxelinux") {
my $node = (ref($self) ? $self : Node->Lookup($node_id));
if ($node->boot_method() eq "pxelinux") {
return 0;
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