fix: an empty variable is []
This commit is contained in:
parent
75fc04c501
commit
9159f44efa
1 changed files with 3 additions and 0 deletions
|
|
@ -240,6 +240,9 @@ class RougailOutputFormatter:
|
|||
# if boolean, the default value is True
|
||||
del variable["type"]
|
||||
variable["default"] = True
|
||||
if "default" not in variable and variable.get("multi") is True and not set(variable) - {'default', 'description', "multi"}:
|
||||
variable["default"] = []
|
||||
del(variable['multi'])
|
||||
if not isinstance(variable.get("default"), dict) and not set(variable) - {'default', 'description'}:
|
||||
# shorthand notation
|
||||
default = variable.get('default')
|
||||
|
|
|
|||
Loading…
Reference in a new issue