mirror of
https://opendev.org/x/pyghmi
synced 2026-05-08 09:40:15 +00:00
Fix SMM build id
Newer platform extends the 0xa8 response. Do not assume right indexed access to responses anymore. Change-Id: I400fd3bc3da1a7aa9f1d96f7a774a17027ac098c
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user