fixed the empty options
Dieser Commit ist enthalten in:
Ursprung
2f36e69a73
Commit
8190ee94d3
|
@ -5,6 +5,14 @@ Sebastian.Base Release Notes
|
||||||
.. contents:: Topics
|
.. contents:: Topics
|
||||||
|
|
||||||
|
|
||||||
|
v0.4.2
|
||||||
|
======
|
||||||
|
|
||||||
|
Minor Changes
|
||||||
|
-------------
|
||||||
|
|
||||||
|
- removed the empty options dict
|
||||||
|
|
||||||
v0.4.1
|
v0.4.1
|
||||||
======
|
======
|
||||||
|
|
||||||
|
|
|
@ -16,4 +16,4 @@ plugins:
|
||||||
strategy: {}
|
strategy: {}
|
||||||
test: {}
|
test: {}
|
||||||
vars: {}
|
vars: {}
|
||||||
version: 0.4.1
|
version: 0.4.2
|
||||||
|
|
|
@ -38,3 +38,10 @@ releases:
|
||||||
- display.yml
|
- display.yml
|
||||||
- options_fix.yml
|
- options_fix.yml
|
||||||
release_date: '2024-03-13'
|
release_date: '2024-03-13'
|
||||||
|
0.4.2:
|
||||||
|
changes:
|
||||||
|
minor_changes:
|
||||||
|
- removed the empty options dict
|
||||||
|
fragments:
|
||||||
|
- empty_options.yml
|
||||||
|
release_date: '2024-03-13'
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
minor_changes:
|
||||||
|
- removed the empty options dict
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
namespace: sebastian
|
namespace: sebastian
|
||||||
name: base
|
name: base
|
||||||
version: 0.4.1
|
version: 0.4.2
|
||||||
|
|
||||||
readme: README.md
|
readme: README.md
|
||||||
|
|
||||||
|
|
|
@ -36,9 +36,9 @@ def docify(input: Union[dict, AnsibleParameter]) -> dict:
|
||||||
options[name]["default"] = []
|
options[name]["default"] = []
|
||||||
if "default" in help:
|
if "default" in help:
|
||||||
options[name]["default"] = help["default"]
|
options[name]["default"] = help["default"]
|
||||||
if "options" in help:
|
if "options" in help and help["options"] != {}:
|
||||||
options[name]["options"] = docify(help["options"])
|
options[name]["options"] = docify(help["options"])
|
||||||
if "choices" in help:
|
if "choices" in help and len(help["choices"]) > 0:
|
||||||
options[name]["choices"] = tuple(help["choices"])
|
options[name]["choices"] = tuple(help["choices"])
|
||||||
return options
|
return options
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
__version__ = "0.4.1"
|
__version__ = "0.4.2"
|
||||||
|
|
Laden…
In neuem Issue referenzieren