mirror of
https://opendev.org/x/pyghmi
synced 2025-01-14 19:57:47 +00:00
If no u-height, revert to default behavior
Change-Id: I94dd5c8dd5b535c39b4b3df579961620e470c31b
This commit is contained in:
parent
7004a1a4c5
commit
9e51f88a20
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user