2
0
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:
Jarrod Johnson
2018-03-09 09:30:42 -05:00
parent 7b50574186
commit 7a2e08e193

View File

@@ -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 = {}