argument_spec is now not merged from middleclasses
Dieser Commit ist enthalten in:
Ursprung
d8a7015977
Commit
4470f06962
|
@ -40,7 +40,11 @@ class AnsibleModule(object):
|
||||||
self.result = dict(changed=False)
|
self.result = dict(changed=False)
|
||||||
specs = dict()
|
specs = dict()
|
||||||
specs.update(self._common_args)
|
specs.update(self._common_args)
|
||||||
specs.update(self.module_spec)
|
modspec = self.module_spec.copy()
|
||||||
|
if "argument_spec" in modspec and "argument_spec" in self._common_args:
|
||||||
|
specs["argument_spec"].update(modspec["argument_spec"])
|
||||||
|
del modspec["argument_spec"]
|
||||||
|
specs.update(modspec)
|
||||||
self.module = basic.AnsibleModule(**specs)
|
self.module = basic.AnsibleModule(**specs)
|
||||||
self.tmpdir = pathlib.Path(self.module.tmpdir)
|
self.tmpdir = pathlib.Path(self.module.tmpdir)
|
||||||
|
|
||||||
|
|
Laden…
In neuem Issue referenzieren