From bf240626aef390c18121d7869a7f869ccc54b9f4 Mon Sep 17 00:00:00 2001 From: Penghui Cui Date: Tue, 9 Nov 2021 15:32:45 +0800 Subject: [PATCH] remove the check as it may cause RD650 failure Change-Id: Id5975c124fae533e1dec52721dd1c94e2a9ce8e8 --- pyghmi/ipmi/fru.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pyghmi/ipmi/fru.py b/pyghmi/ipmi/fru.py index 0c344531..53c34b52 100644 --- a/pyghmi/ipmi/fru.py +++ b/pyghmi/ipmi/fru.py @@ -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