2
0
mirror of https://opendev.org/x/pyghmi synced 2026-06-19 18:11:00 +00:00

Merge "Show True and False as choices for booleans"

This commit is contained in:
Zuul
2020-01-23 21:29:33 +00:00
committed by Gerrit Code Review
+3
View File
@@ -932,6 +932,9 @@ class Command(object):
defaultval, defaultval)
if attr['Type'] == 'Integer' and defaultval:
defaultval = int(defaultval)
if attr['Type'] == 'Boolean':
vals = [{'ValueDisplayName': 'True'},
{'ValueDisplayName': 'False'}]
addon[attr['AttributeName']] = {
'default': defaultval,
'help': attr.get('HelpText', None),