fix: options could be a list
This commit is contained in:
parent
c25a66f0cb
commit
ea34751e08
1 changed files with 11 additions and 6 deletions
|
@ -488,12 +488,17 @@ force_optional:
|
||||||
extra_vars |= obj["extra_vars"]
|
extra_vars |= obj["extra_vars"]
|
||||||
if not "options" in obj:
|
if not "options" in obj:
|
||||||
continue
|
continue
|
||||||
convert.parse_root_file(
|
if not isinstance(obj["options"], list):
|
||||||
f'rougail.config.{obj["name"]}',
|
options = [obj["options"]]
|
||||||
"",
|
else:
|
||||||
"1.1",
|
options = obj["options"]
|
||||||
YAML().load(obj["options"]),
|
for option in options:
|
||||||
)
|
convert.parse_root_file(
|
||||||
|
f'rougail.config.{obj["name"]}',
|
||||||
|
"",
|
||||||
|
"1.1",
|
||||||
|
YAML().load(option),
|
||||||
|
)
|
||||||
|
|
||||||
tiram_obj = convert.save(None)
|
tiram_obj = convert.save(None)
|
||||||
optiondescription = {}
|
optiondescription = {}
|
||||||
|
|
Loading…
Reference in a new issue