mirror of
https://opendev.org/x/pyghmi
synced 2025-01-14 11:48:33 +00:00
Shore up support of numeric_data, mask others
The numeric_data type was not handled, handle it. boolean and cmd_data are not currently supported, mask them for now. Change-Id: I11bad320237fbcf7fd630f7b55cb30cff66d2845
This commit is contained in:
parent
7a2e08e193
commit
0bd140036c
@ -284,16 +284,21 @@ class LenovoFirmwareConfig(object):
|
||||
reset = False
|
||||
name = setting.find("mriName").text
|
||||
help = setting.find("desc").text
|
||||
textdata = setting.find('text_data')
|
||||
if textdata is not None:
|
||||
if textdata.get('maxinstance') is not None:
|
||||
onedata = setting.find('text_data')
|
||||
if onedata is None:
|
||||
onedata = setting.find('numeric_data')
|
||||
if onedata is not None:
|
||||
if onedata.get('maxinstance') is not None:
|
||||
protect = True # Not yet supported
|
||||
else:
|
||||
instance = textdata.find('instance')
|
||||
instance = onedata.find('instance')
|
||||
if instance is None:
|
||||
protect = True # not supported yet
|
||||
else:
|
||||
current = instance.text
|
||||
if (setting.find('cmd_data') is not None or
|
||||
setting.find('boolean_data') is not None):
|
||||
protect = True # Hide currently unsupported settings
|
||||
ldata = setting.find("list_data")
|
||||
extraorder = False
|
||||
currentdict = {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user