From e9231cbfad659f9cb87a3a5534213f0a0dcd577d Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 8 Oct 2020 12:26:50 -0400 Subject: [PATCH] Support SMMv2 permission check format Change-Id: I3126e5fd6b34a7b74e506772b3dbd377609fb13f --- 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 ba221eaf..eb2fae2d 100644 --- a/pyghmi/ipmi/oem/lenovo/nextscale.py +++ b/pyghmi/ipmi/oem/lenovo/nextscale.py @@ -123,7 +123,7 @@ def fpc_get_nodeperm(ipmicmd, number, sz): perminfo = bytearray(rsp['data'])[1] if sz == 6: # FPC permfail = ('\x02', '\x03') - elif sz == 2: # SMM + else: # SMM permfail = ('\x02',) if perminfo & 0x20: if rsp['data'][4] in permfail: