2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-15 09:11:30 +00:00

Enhance rinv for garrison server

This commit is contained in:
ertaozh
2016-04-27 05:36:14 -04:00
parent 750e82f4f2
commit 300dabc333

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;