From 32f2e2827f15239c4522d1fc20f93ef510e09a66 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 6 Mar 2020 09:29:31 -0500 Subject: [PATCH] Fix python3 on IMM There was a python2 assumption in the imm code for pre-XCC devices. Fix this mistake. Change-Id: I48871f3d6d34533db0ad6d7facb8e693f4eca37a --- pyghmi/ipmi/oem/lenovo/imm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyghmi/ipmi/oem/lenovo/imm.py b/pyghmi/ipmi/oem/lenovo/imm.py index 9f0d85dc..13870f7a 100644 --- a/pyghmi/ipmi/oem/lenovo/imm.py +++ b/pyghmi/ipmi/oem/lenovo/imm.py @@ -798,7 +798,7 @@ class IMMClient(object): try: fpga = self.ipmicmd.xraw_command(netfn=0x3a, command=0x6b, data=(0,)) - fpga = '{0}.{1}.{2}'.format(*[ord(x) for x in fpga['data']]) + fpga = '{0}.{1}.{2}'.format(*bytearray(fpga['data'])) yield ('FPGA', {'version': fpga}) except pygexc.IpmiException as ie: if ie.ipmicode != 193: