2
0
mirror of https://opendev.org/x/pyghmi synced 2026-05-17 11:54:22 +00:00

remove the check as it may cause RD650 failure

Change-Id: Id5975c124fae533e1dec52721dd1c94e2a9ce8e8
This commit is contained in:
Penghui Cui
2021-11-09 15:32:45 +08:00
parent 3a8fec21fe
commit bf240626ae
+1 -3
View File
@@ -281,9 +281,7 @@ class FRU(object):
try:
while self.databytes[offset] != 0xc1:
fielddata, offset = self._decode_tlv(offset, language)
# add check to avoid exception
if fielddata:
target.append(fielddata)
target.append(fielddata)
except IndexError:
# If we overrun the end due to malformed FRU,
# return at least what decoded right