From 2fb16a444bfcb08f464ef56f5af6a2b76e47525c Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 20 Apr 2021 13:21:55 -0400 Subject: [PATCH] Apply new PSU configuration to non-FPC variants FPC had a different command, but for all the newer variants, also apply the SMM vocabulary for modifying configuration. Change-Id: I167de6f1953391d494c2e0c6b4d4d6b9447f0af5 --- 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 db1d570e..cf84170b 100644 --- a/pyghmi/ipmi/oem/lenovo/nextscale.py +++ b/pyghmi/ipmi/oem/lenovo/nextscale.py @@ -559,7 +559,7 @@ class SMMClient(object): self.wc.request('POST', '/data', rules) self.wc.getresponse().read() if powercfg != [None, None]: - if variant == 2: + if variant != 6: if None in powercfg: currcfg = self.ipmicmd.xraw_command(0x32, 0xa2) currcfg = bytearray(currcfg['data'])