From 07c1ba8a10dd3eddc60b4cecb430ebbfb5fe222f Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 17 May 2010 15:16:47 +0000 Subject: [PATCH] -Reorder response parsing to avoid null reference git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6153 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/ipmi.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}); }