2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

Fix issue 2803: rinv ocasionally produces BMC error without telling which node was in error

This commit is contained in:
ertaozh 2017-05-11 03:37:41 -04:00
parent 1e098afcb2
commit a811568afb

View File

@ -4525,8 +4525,9 @@ sub extractfield { #idx is location of the type/length byte, returns something a
my $language = shift;
my $data;
if ($idx >= scalar @$area) {
xCAT::SvrUtils::sendmsg([ 1, "Error parsing FRU data from BMC" ], $callback);
return -1, undef, undef;
# The global_sessdata store the sessdata for a node when parsefru, and it is cleaned after parsefru
xCAT::SvrUtils::sendmsg([ 1, "Error encountered when parsing FRU data from BMC" ], $callback, $global_sessdata->{node}, %allerrornodes);
return 0, undef, undef;
}
my $size = $area->[$idx] & 0b00111111;
my $encoding = ($area->[$idx] & 0b11000000) >> 6;