From b32089acea3b189dd0f41aacff2a242abc755821 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 7 Nov 2017 14:34:30 -0500 Subject: [PATCH] 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 --- pyghmi/ipmi/oem/lenovo/imm.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pyghmi/ipmi/oem/lenovo/imm.py b/pyghmi/ipmi/oem/lenovo/imm.py index fbabd78f..033875a8 100644 --- a/pyghmi/ipmi/oem/lenovo/imm.py +++ b/pyghmi/ipmi/oem/lenovo/imm.py @@ -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',