From deded4f2953c82be8b8c3b48f44bee640897bc44 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 29 Apr 2016 11:09:12 -0400 Subject: [PATCH] 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 --- pyghmi/ipmi/oem/lenovo/imm.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyghmi/ipmi/oem/lenovo/imm.py b/pyghmi/ipmi/oem/lenovo/imm.py index 47d06be4..ced947d3 100644 --- a/pyghmi/ipmi/oem/lenovo/imm.py +++ b/pyghmi/ipmi/oem/lenovo/imm.py @@ -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',