From 93447dbe2b78055676ce565f186d330333cb26c5 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 2 Jun 2021 14:48:43 -0400 Subject: [PATCH] Fix SMM build id Newer platform extends the 0xa8 response. Do not assume right indexed access to responses anymore. Change-Id: I400fd3bc3da1a7aa9f1d96f7a774a17027ac098c --- 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 6f29e92b..305e3944 100644 --- a/pyghmi/ipmi/oem/lenovo/nextscale.py +++ b/pyghmi/ipmi/oem/lenovo/nextscale.py @@ -329,7 +329,7 @@ def get_fpc_firmware(bmcver, ipmicmd, fpcorsmm): else: name = 'SMM' buildid = '{0}{1}{2}{3}{4}{5}{6}'.format( - *[chr(x) for x in builddata[-7:]]) + *[chr(x) for x in builddata[6:13]]) elif len(builddata) == 8: builddata = builddata[1:] # discard the 'completion code' name = 'FPC'