2
0
mirror of https://opendev.org/x/pyghmi synced 2026-02-25 03:39:20 +00:00

Catch more core firmware oddities in the firmware version fixup for XCC3

Change-Id: I4846444da464e3fdfc7352eb17bb8fe8ee632b63
This commit is contained in:
Jarrod Johnson
2025-02-26 15:54:39 -05:00
parent dbeb5e0893
commit 949cf8ea9b

View File

@@ -432,9 +432,11 @@ class OEMHandler(generic.OEMHandler):
swid = redres.get('SoftwareId', '')
buildid = ''
version = redres.get('Version', None)
if swid.startswith('FPGA-') or swid.startswith('UEFI-') or swid.startswith('BMC-'):
buildid = swid.split('-')[1] + version.split('-')[0]
version = '-'.join(version.split('-')[1:])
for prefix in ['FPGA-', 'UEFI-', 'BMC-', 'LXPM-', 'DRVWN-', 'DRVLN-', 'LXUM']:
if swid.startswith(prefix):
buildid = swid.split('-')[1] + version.split('-')[0]
version = '-'.join(version.split('-')[1:])
break
if version:
redres['Version'] = version
cres = fishclient._extract_fwinfo(res)