2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-14 03:37:47 +00:00

Add 'Trusted IMM' to IMM inventory

IMM has an active, backup, and trusted image.  Add
info about the trusted image to IMM inventory to
make that clear.

Change-Id: I771cee6831d11c2b7dbc780475582e9030d7e7b6
This commit is contained in:
Jarrod Johnson 2016-04-29 11:09:12 -04:00
parent 120d5f9a82
commit deded4f295

View File

@ -126,6 +126,11 @@ def get_firmware_inventory(ipmicmd, bmcver, certverify):
'date': '/v2/ibmc/dm/fw/imm2/backup_build_date'})
if bdata:
yield ('IMM Backup', bdata)
bdata = fetch_grouped_properties(ipmicmd, {
'build': '/v2/ibmc/trusted_buildid',
})
if bdata:
yield ('IMM Trusted Image', bdata)
bdata = fetch_grouped_properties(ipmicmd, {
'build': '/v2/bios/build_id',
'version': '/v2/bios/build_version',