diff --git a/pyghmi/ipmi/oem/lenovo/nextscale.py b/pyghmi/ipmi/oem/lenovo/nextscale.py index a775f2c3..80fc0746 100644 --- a/pyghmi/ipmi/oem/lenovo/nextscale.py +++ b/pyghmi/ipmi/oem/lenovo/nextscale.py @@ -210,6 +210,8 @@ def get_fpc_firmware(bmcver, ipmicmd, fpcorsmm): builddata = builddata[1:] # discard the 'completion code' name = 'FPC' buildid = '{0:02X}{1}'.format(builddata[-2], chr(builddata[-1])) + bmcmajor, bmcminor = [int(x) for x in bmcver.split('.')] + bmcver = '{0}.{1:02d}'.format(bmcmajor, bmcminor) yield (name, {'version': bmcver, 'build': buildid}) yield ('PSOC', {'version': '{0}.{1}'.format(builddata[2], builddata[3])})