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
This commit is contained in:
jbjohnso 2008-02-12 20:05:12 +00:00
parent 695dcd7fae
commit 777eeb9449

View File

@ -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];