argument_spec is now better documented
Dieser Commit ist enthalten in:
Ursprung
4470f06962
Commit
68df507cb1
|
@ -145,7 +145,12 @@ class AnsibleModule(object):
|
||||||
doc = ""
|
doc = ""
|
||||||
options = dict()
|
options = dict()
|
||||||
help: _sdict
|
help: _sdict
|
||||||
for option, help in cls.module_spec["argument_spec"].items():
|
specs = dict()
|
||||||
|
if "argument_spec" in cls._common_args:
|
||||||
|
specs.update(cls._common_args["argument_spec"])
|
||||||
|
if "argument_spec" in cls.module_spec:
|
||||||
|
specs.update(cls.module_spec["argument_spec"])
|
||||||
|
for option, help in specs.items():
|
||||||
options[option] = dict(
|
options[option] = dict(
|
||||||
type=help["type"],
|
type=help["type"],
|
||||||
)
|
)
|
||||||
|
|
Laden…
In neuem Issue referenzieren