From 777eeb9449770b20ef236716a673432d133f7301 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 12 Feb 2008 20:05:12 +0000 Subject: [PATCH] IPMI eventlog returns decoded events up to an error, rather than just the error git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@455 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/lib/xcat/plugins/ipmi.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xCAT-server-2.0/lib/xcat/plugins/ipmi.pm b/xCAT-server-2.0/lib/xcat/plugins/ipmi.pm index b4034144e..bede3afa3 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/ipmi.pm @@ -2381,7 +2381,8 @@ sub eventlog { if($error) { $rc = 1; $text = $error; - return($rc,$text); + push(@output,$text); + return($rc,@output); } $code = $returnd[36-$authoffset]; @@ -2401,7 +2402,8 @@ sub eventlog { if(!$text) { $text = sprintf("unknown response %02x",$code); } - return($rc,$text); + push(@output,$text); + return($rc,@output); } my $next_rec_ls = $returnd[37-$authoffset];