diff --git a/pyghmi/redfish/oem/generic.py b/pyghmi/redfish/oem/generic.py index 344325f5..718de726 100644 --- a/pyghmi/redfish/oem/generic.py +++ b/pyghmi/redfish/oem/generic.py @@ -530,8 +530,15 @@ class OEMHandler(object): return None def get_description(self, fishclient): + for chassis in fishclient.sysinfo.get('Links', {}).get('Chassis', []): + chassisurl = chassis['@odata.id'] + chassisinfo = self._do_web_request(chassisurl) + hmm = chassisinfo.get('HeightMm', None) + if hmm: + return {'height': hmm/44.45} return {} + def get_firmware_inventory(self, components, fishclient): return [] diff --git a/pyghmi/redfish/oem/lenovo/xcc3.py b/pyghmi/redfish/oem/lenovo/xcc3.py index 01426742..f0f2abc5 100644 --- a/pyghmi/redfish/oem/lenovo/xcc3.py +++ b/pyghmi/redfish/oem/lenovo/xcc3.py @@ -4,15 +4,9 @@ import pyghmi.exceptions as pygexc class OEMHandler(generic.OEMHandler): - def get_description(self, fishclient): - bmcstgs = fishclient._do_web_request('/redfish/v1/Managers/1/Oem/Lenovo/BMCSettings') - heightu = bmcstgs.get('Attributes', {}).get('ServerConfigHeightU') - return {'height': heightu} - def supports_expand(self, url): return True - def get_system_configuration(self, hideadvanced=True, fishclient=None): stgs = self._getsyscfg(fishclient)[0] outstgs = {}