diff --git a/xCAT-server/lib/xcat/plugins/ipmi.pm b/xCAT-server/lib/xcat/plugins/ipmi.pm index 7efeba287..15f46413e 100644 --- a/xCAT-server/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server/lib/xcat/plugins/ipmi.pm @@ -1138,11 +1138,11 @@ sub power_with_context { sub power_response { my $rsp = shift; my $sessdata = shift; - my @returnd = ($rsp->{code},@{$rsp->{data}}); if($rsp->{error}) { sendmsg([1,$rsp->{error}],$sessdata->{node}); return; } + my @returnd = ($rsp->{code},@{$rsp->{data}}); if ($rsp->{code}) { my $text = $codes{$rsp->{code}}; unless ($text) { $text = sprintf("Unknown response %02xh",$rsp->{code}); }