2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-31 10:06:39 +00:00

Merge pull request #990 from zet809/fix_rinv_issue_for_garrison

Enhance rinv for OpenPower Servers
This commit is contained in:
Xiaopeng Wang 2016-04-29 11:35:52 +08:00
commit ae5ce53415

View File

@ -3396,10 +3396,15 @@ sub readcurrfrudevice {
}
my @data = @{$rsp->{data}};
if ($data[0] != $sessdata->{currfruchunk}) {
add_fruhash($sessdata);
my $text = "Received incorrect data from BMC for FRU ID: " . $sessdata->{currfruid};
xCAT::SvrUtils::sendmsg($text,$callback,$sessdata->{node},%allerrornodes);
return;
# Fix FRU 43,48 and 49 for GRS server that they can not return as much data as shall return
if ($data[0] gt 0) {
$sessdata->{currfrudone}=1;
} else {
my $text = "Received incorrect data from BMC for FRU ID: " . $sessdata->{currfruid};
xCAT::SvrUtils::sendmsg($text,$callback,$sessdata->{node},%allerrornodes);
add_fruhash($sessdata);
return;
}
}
shift @data;
push @{$sessdata->{currfrudata}},@data;