From 300dabc333458626f43f405e1457fd97535d58a2 Mon Sep 17 00:00:00 2001 From: ertaozh Date: Wed, 27 Apr 2016 05:36:14 -0400 Subject: [PATCH] Enhance rinv for garrison server --- xCAT-server/lib/xcat/plugins/ipmi.pm | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/ipmi.pm b/xCAT-server/lib/xcat/plugins/ipmi.pm index 9e0faf0b08..58ecda30c9 100644 --- a/xCAT-server/lib/xcat/plugins/ipmi.pm +++ b/xCAT-server/lib/xcat/plugins/ipmi.pm @@ -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;