2
0
mirror of https://opendev.org/x/pyghmi synced 2025-03-10 06:07:28 +00:00

Add XCC Pending version to firmware inventory

The XCC with an update prepared but not yet executed offers that info.
Provide that to the calling code.

Change-Id: Iaafe681c6f744368ecc42dd87919a50a69466e1b
This commit is contained in:
Jarrod Johnson 2017-11-07 14:34:30 -05:00
parent d74b22a1fb
commit b32089acea

View File

@ -543,6 +543,12 @@ class XCCClient(IMMClient):
})
if bdata:
yield ('{0} Trusted Image'.format(self.bmcname), bdata)
bdata = self.fetch_grouped_properties({
'build': '/v2/ibmc/dm/fw/imm3/primary_pending_build_id',
'version': '/v2/ibmc/dm/fw/imm3/primary_pending_build_version',
'date': '/v2/ibmc/dm/fw/imm3/primary_pending_build_date'})
if bdata:
yield ('{0} Pending Update'.format(self.bmcname), bdata)
bdata = self.fetch_grouped_properties({
'build': '/v2/bios/build_id',
'version': '/v2/bios/build_version',