2
0
mirror of https://opendev.org/x/pyghmi synced 2026-10-19 10:10:37 +00:00

Change FPGA to BCD format

Consistent with other tool behavior

Change-Id: Ifbcd54daf46021a1c272a5ece075840601bcbf9f
This commit is contained in:
Jarrod Johnson
2026-05-21 10:14:26 -04:00
parent 41fb03b4ec
commit cf824a61f4
+2 -2
View File
@@ -881,7 +881,7 @@ class IMMClient(object):
try:
fpga = self.ipmicmd.xraw_command(netfn=0x3a, command=0x6b,
data=(0,))
fpga = '{0}.{1}.{2}'.format(*bytearray(fpga['data']))
fpga = '{0:x}.{1:x}.{2:x}'.format(*bytearray(fpga['data']))
yield ('FPGA', {'version': fpga})
except pygexc.IpmiException as ie:
if ie.ipmicode != 193:
@@ -1910,7 +1910,7 @@ class XCCClient(IMMClient):
try:
fpga = self.ipmicmd.xraw_command(netfn=0x3a, command=0x6b,
data=(0,))
fpga = '{0}.{1}.{2}'.format(
fpga = '{0:x}.{1:x}.{2:x}'.format(
*struct.unpack('BBB', fpga['data']))
yield 'FPGA', {'version': fpga}
except pygexc.IpmiException as ie: