mirror of
https://opendev.org/x/pyghmi
synced 2025-09-01 07:48:08 +00:00
Fix python3 on IMM
There was a python2 assumption in the imm code for pre-XCC devices. Fix this mistake. Change-Id: I48871f3d6d34533db0ad6d7facb8e693f4eca37a
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user