From 4b4ae0eb974ef7385aecb03b9fe4a0044eb321a9 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 2 Mar 2022 17:01:22 -0500 Subject: [PATCH] Add water cooled 9-PSU variant The water cooled chassis has a 9 PSU variant that must be recognized. Change-Id: If6b214e0d8e7366f663430a7dc5fcac421c7d9ca --- pyghmi/ipmi/oem/lenovo/nextscale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyghmi/ipmi/oem/lenovo/nextscale.py b/pyghmi/ipmi/oem/lenovo/nextscale.py index fd85e056..6f27550b 100644 --- a/pyghmi/ipmi/oem/lenovo/nextscale.py +++ b/pyghmi/ipmi/oem/lenovo/nextscale.py @@ -180,7 +180,7 @@ def get_psu_count(ipmicmd, variant): if variant == 0x26: mymsg = ipmicmd.xraw_command(netfn=0x32, command=0xa8) builddata = bytearray(mymsg['data']) - if builddata[13] == 3: + if builddata[13] in (3, 6): return 9 else: return 6