2
0
mirror of https://opendev.org/x/pyghmi synced 2026-04-01 07:43:39 +00:00

check the fruinf again as the oem process may return None

the change is from
d09e23fea9 (dade58c051d057633b161944993db070adc93aa0)
collection of M4 and Kent support - 12032015

Change-Id: I2546634397ebf705d125be5ff88024533a3196ba
This commit is contained in:
luyf5
2021-09-01 17:00:12 +08:00
parent 9d548ce378
commit f61ffcac04

View File

@@ -690,7 +690,9 @@ class Command(object):
if fruinf is not None:
fruinf = self._oem.process_fru(fruinf,
self._sdr.fru[fruid].fru_name)
yield (self._sdr.fru[fruid].fru_name, fruinf)
# check the fruinf again as the oem process may return None
if fruinf:
yield (self._sdr.fru[fruid].fru_name, fruinf)
for componentpair in self._oem.get_oem_inventory():
yield componentpair