diff --git a/pyghmi/ipmi/oem/lenovo/imm.py b/pyghmi/ipmi/oem/lenovo/imm.py index 85be1841..174887c4 100644 --- a/pyghmi/ipmi/oem/lenovo/imm.py +++ b/pyghmi/ipmi/oem/lenovo/imm.py @@ -786,6 +786,8 @@ class XCCClient(IMMClient): def get_description(self): dsc = self.wc.grab_json_response('/DeviceDescription.json') dsc = dsc[0] + if not dsc.get('u-height', None): + return {} return {'height': int(dsc['u-height']), 'slot': int(dsc['slot'])} def clear_system_configuration(self):