2
0
mirror of https://opendev.org/x/pyghmi synced 2025-07-22 12:11:13 +00:00

Support default for numeric_data

numeric_data entries have default as an attribute, support this
location for default

Change-Id: I23f8bc23f55e804100e2816536f7d33855fa61d6
This commit is contained in:
Jarrod Johnson
2018-07-20 11:33:28 -04:00
parent 52374d6a30
commit eec5bcf9cd

View File

@@ -299,6 +299,7 @@ class LenovoFirmwareConfig(object):
protect = True # not supported yet
else:
current = instance.text
default = onedata.get('default', None)
if (setting.find('cmd_data') is not None or
setting.find('boolean_data') is not None):
protect = True # Hide currently unsupported settings