fixed the description generation part of docify
Dieser Commit ist enthalten in:
Ursprung
931ed6d4f8
Commit
7bec7376db
|
@ -25,8 +25,10 @@ def docify(input: Union[dict, AnsibleParameter]) -> dict:
|
|||
options = dict()
|
||||
for name, help in input.items():
|
||||
options[name] = dict(type=help["type"])
|
||||
if "description" in help and isinstance(help["description"], str):
|
||||
options[name]["description"] = options[name]["description"].split("\n")
|
||||
if "description" in help:
|
||||
if isinstance(help["description"], str):
|
||||
help["description"] = help["description"].split("\n")
|
||||
options[name]["description"] = help["description"]
|
||||
if "required" in help and help["required"]:
|
||||
options[name]["required"] = True
|
||||
else:
|
||||
|
|
Laden…
In neuem Issue referenzieren