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

Lint.

parent 8f43717b
#!/usr/bin/perl -wT #!/usr/bin/perl -wT
# #
# Copyright (c) 2000-2013 University of Utah and the Flux Group. # Copyright (c) 2000-2015 University of Utah and the Flux Group.
# #
# {{{EMULAB-LICENSE # {{{EMULAB-LICENSE
# #
...@@ -240,8 +240,12 @@ if ($ELABINELAB) { ...@@ -240,8 +240,12 @@ if ($ELABINELAB) {
# What if the node is on? Nothing is going to # What if the node is on? Nothing is going to
# happen and changing the state is wrong. # happen and changing the state is wrong.
# #
$newstate = TBDB_NODESTATE_SHUTDOWN() if ($oldstate eq TBDB_NODESTATE_POWEROFF()) {
if ($oldstate eq TBDB_NODESTATE_POWEROFF()); $newstate = TBDB_NODESTATE_SHUTDOWN()
} else {
$newstate = $oldstate;
}
} }
print "$node: $oldstate, $newstate\n"; print "$node: $oldstate, $newstate\n";
...@@ -249,7 +253,7 @@ if ($ELABINELAB) { ...@@ -249,7 +253,7 @@ if ($ELABINELAB) {
# Avoid sending duplicate events; annoys stated. # Avoid sending duplicate events; annoys stated.
# #
$node->SetEventState($newstate) $node->SetEventState($newstate)
if (defined($newstate) && $newstate ne $oldstate); if ($newstate ne $oldstate);
} }
} }
exit($rval); exit($rval);
......
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