Commit b18c7ef9 authored by Ryan Jackson's avatar Ryan Jackson

Fix parsing of ICEBox responses

parent 64386ed7
......@@ -126,7 +126,7 @@ sub power {
if (not defined $output) {
print STDERR $self->{DEVICENAME}, ": could not execute power command \"$op\" for ports @ports\n";
} elsif ("@$output" !~ /^OK$/) {
} elsif ($$output[-1] !~ /^\s*OK$/) {
print STDERR $self->{DEVICENAME}, ": power command \"$op\" failed with error @$output\n";
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