2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-27 19:37:44 +00:00

Ignore blank numeric default

Some settings that are numeric show a default of ''.  Such a default is not usable.
Treat such a situation as a default not existing.

Change-Id: Id3931da7128a732f62863055a93117a3abd05805
This commit is contained in:
Jarrod Johnson 2019-04-22 14:05:57 -04:00
parent 91140fdfca
commit f2f1ddb4a3

View File

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