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:
parent
91140fdfca
commit
f2f1ddb4a3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user