fixed an problem with arguments that got updated in different modules
Dieser Commit ist enthalten in:
Ursprung
652b7e961d
Commit
e4f25c2ffa
|
@ -1,5 +1,6 @@
|
||||||
import pathlib
|
import pathlib
|
||||||
from typing import Any, Callable, ClassVar, Dict, NoReturn, Optional, Type, TypeVar, overload
|
from copy import deepcopy
|
||||||
|
from typing import Any, Callable, ClassVar, Dict, NoReturn, Optional, Type, TypeVar, Union, overload
|
||||||
|
|
||||||
import ansible.module_utils.basic as basic
|
import ansible.module_utils.basic as basic
|
||||||
|
|
||||||
|
@ -39,8 +40,8 @@ class AnsibleModule(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.result = dict(changed=False)
|
self.result = dict(changed=False)
|
||||||
specs = dict()
|
specs = dict()
|
||||||
specs.update(self._common_args)
|
specs.update(deepcopy(self._common_args))
|
||||||
modspec = self.module_spec.copy()
|
modspec = self.module_spec
|
||||||
if "argument_spec" in modspec and "argument_spec" in self._common_args:
|
if "argument_spec" in modspec and "argument_spec" in self._common_args:
|
||||||
specs["argument_spec"].update(modspec["argument_spec"])
|
specs["argument_spec"].update(modspec["argument_spec"])
|
||||||
del modspec["argument_spec"]
|
del modspec["argument_spec"]
|
||||||
|
|
Laden…
In neuem Issue referenzieren