mirror of
https://opendev.org/x/pyghmi
synced 2025-01-14 03:37:47 +00:00
Workaround 7Y36 model bug
7Y36 firmware does not populate u-height. Workaround the bug by embedding the correct value for the model. Change-Id: I78481b7ec80956d76e6085855d35cd7c6886a225
This commit is contained in:
parent
9e51f88a20
commit
60313e76c0
@ -787,7 +787,10 @@ class XCCClient(IMMClient):
|
||||
dsc = self.wc.grab_json_response('/DeviceDescription.json')
|
||||
dsc = dsc[0]
|
||||
if not dsc.get('u-height', None):
|
||||
return {}
|
||||
if dsc.get('enclosure-machinetype-model', '').startswith('7Y36'):
|
||||
return {'height': 2, 'slot': 0}
|
||||
else:
|
||||
return {}
|
||||
return {'height': int(dsc['u-height']), 'slot': int(dsc['slot'])}
|
||||
|
||||
def clear_system_configuration(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user