mirror of
https://opendev.org/x/pyghmi
synced 2025-08-21 18:40:20 +00:00
Support text_data IMM/XCC configuration
In addition to enumerate and list data types, there are also text_data types, particularly for configuring 'IMM' items. Change-Id: I290e731df5cfd46d00410fa5d0bd445b6d9654c3
This commit is contained in:
@@ -284,6 +284,16 @@ 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:
|
||||
protect = True # Not yet supported
|
||||
else:
|
||||
instance = textdata.find('instance')
|
||||
if instance is None:
|
||||
protect = True # not supported yet
|
||||
else:
|
||||
current = instance.text
|
||||
ldata = setting.find("list_data")
|
||||
extraorder = False
|
||||
currentdict = {}
|
||||
|
Reference in New Issue
Block a user