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