diff --git a/pyghmi/ipmi/oem/lenovo/imm.py b/pyghmi/ipmi/oem/lenovo/imm.py index 5c947d64..258dc5ab 100644 --- a/pyghmi/ipmi/oem/lenovo/imm.py +++ b/pyghmi/ipmi/oem/lenovo/imm.py @@ -1796,7 +1796,9 @@ class XCCClient(IMMClient): licdata = self.wc.grab_json_response('/api/providers/imm_fod') for lic in licdata.get('items', [{}])[0].get('keys', []): if lic['status'] == 0: - yield {'name': lic['feature']} + yield {'name': lic['feature'], 'state': 'Active'} + elif lic['status'] == 10: + yield {'name': lic['feature'], 'state': 'Missing required license'} def save_licenses(self, directory): licdata = self.wc.grab_json_response('/api/providers/imm_fod') diff --git a/pyghmi/redfish/oem/lenovo/xcc.py b/pyghmi/redfish/oem/lenovo/xcc.py index c4ae1610..5acef952 100644 --- a/pyghmi/redfish/oem/lenovo/xcc.py +++ b/pyghmi/redfish/oem/lenovo/xcc.py @@ -708,7 +708,9 @@ class OEMHandler(generic.OEMHandler): licdata = self.wc.grab_json_response('/api/providers/imm_fod') for lic in licdata.get('items', [{}])[0].get('keys', []): if lic['status'] == 0: - yield {'name': lic['feature']} + yield {'name': lic['feature'], 'state': 'Active'} + if lic['status'] == 10: + yield {'name': lic['feature'], 'state': 'Missing required license'} def delete_license(self, name): licdata = self.wc.grab_json_response('/api/providers/imm_fod')