2
0
mirror of https://opendev.org/x/pyghmi synced 2026-04-01 15:53:32 +00:00

Do not attempt PSU inventory on FPC

FPC does not support the same PSU inventory
that SMM added.

Change-Id: I85961df9d35e99b7bddaedb85eda9d2ad71653ee
This commit is contained in:
Jarrod Johnson
2022-02-11 15:37:16 -05:00
parent 3fcc1d362e
commit b5806c3c0a

View File

@@ -955,6 +955,8 @@ class SMMClient(object):
return 'complete'
def get_inventory_descriptions(self, ipmicmd, variant):
if variant >> 5 == 0:
return
psucount = get_psu_count(ipmicmd, variant)
for idx in range(psucount):
yield 'PSU {}'.format(idx + 1)