Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
d0a5f9cd
Commit
d0a5f9cd
authored
Nov 25, 2014
by
Mike Hibler
Browse files
Account for case of $self not being an object.
parent
2c33fc02
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/Node.pm.in
View file @
d0a5f9cd
...
...
@@ -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;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment