From b5806c3c0a6315b3408bcbabb45f9bdcacf32d4c Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 11 Feb 2022 15:37:16 -0500 Subject: [PATCH] Do not attempt PSU inventory on FPC FPC does not support the same PSU inventory that SMM added. Change-Id: I85961df9d35e99b7bddaedb85eda9d2ad71653ee --- pyghmi/ipmi/oem/lenovo/nextscale.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyghmi/ipmi/oem/lenovo/nextscale.py b/pyghmi/ipmi/oem/lenovo/nextscale.py index 726798bd..65703783 100644 --- a/pyghmi/ipmi/oem/lenovo/nextscale.py +++ b/pyghmi/ipmi/oem/lenovo/nextscale.py @@ -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)