Commit d0a5f9cd authored by Mike Hibler's avatar Mike Hibler

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") {
TBPxelinuxConfig($self);
my $node = (ref($self) ? $self : Node->Lookup($node_id));
if ($node->boot_method() eq "pxelinux") {
TBPxelinuxConfig($node);
}
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