Better isolate failures to one FRU area.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11241 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2011-12-13 20:30:36 +00:00
parent bb0d44e4c6
commit dde326fb95

View File

@ -1704,6 +1704,18 @@ sub process_currfruid {
add_fruhash($sessdata);
return;
}
if ($rsp and $rsp->{code}) { #non-zero return code..
$sessdata->{currfrudata}="Unable to read";
if ($codes{$rsp->{code}}) {
$sessdata->{currfrudata} .= " (".$codes{$rsp->{code}}.")";
} else {
$sessdata->{currfrudata} .= sprintf(" (Unknown reason %02xh)",$rsp->{code});
}
$sessdata->{currfrudone}=1;
add_fruhash($sessdata);
return;
}
if (check_rsp_errors($rsp,$sessdata)) {
return;
}