Commit 92d954d3 authored by Mike Hibler's avatar Mike Hibler
Browse files

Another check to make power cycle of unknown node work.

parent 32c159b3
......@@ -455,7 +455,7 @@ foreach my $power_id (keys %outlets) {
foreach my $nodeid (@nodes) {
my $node = $nodes{$nodeid};
print "$nodeid now ",($op eq "cycle" ? "rebooting" : $op),"\n";
if ($sendevent) {
if (defined($node) && $sendevent) {
my $oldstate = $node->eventstate();
my $newstate;
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