removed display

Dieser Commit ist enthalten in:
Sebastian Tobie 2024-03-16 21:28:31 +01:00
Ursprung f351bb6fb6
Commit 9d18ea533e

Datei anzeigen

@ -1,7 +1,6 @@
import pathlib import pathlib
from copy import deepcopy from copy import deepcopy
from typing import Any, Callable, ClassVar, Dict, NoReturn, Optional, Type, TypeVar, Union, overload, TypedDict from typing import Any, Callable, ClassVar, Dict, NoReturn, Optional, Type, TypeVar, Union, overload, TypedDict
from ansible.utils.display import Display
import ansible.module_utils.basic as basic import ansible.module_utils.basic as basic
@ -63,8 +62,6 @@ class AnsibleModule(object):
module_spec: ClassVar[dict] module_spec: ClassVar[dict]
#: This is set by classes that define common things for their subclasses, like behaviour of the run and check methods. This is used by `SystemdUnitModule` #: This is set by classes that define common things for their subclasses, like behaviour of the run and check methods. This is used by `SystemdUnitModule`
_common_args: ClassVar[dict[str, Any]] = dict() _common_args: ClassVar[dict[str, Any]] = dict()
#: For log messages
display: Display
@property @property
def params(self) -> Dict[str, Any]: def params(self) -> Dict[str, Any]:
@ -80,7 +77,6 @@ class AnsibleModule(object):
specs["argument_spec"].update(modspec["argument_spec"]) specs["argument_spec"].update(modspec["argument_spec"])
del modspec["argument_spec"] del modspec["argument_spec"]
specs.update(modspec) specs.update(modspec)
self.display = Display()
self.module = basic.AnsibleModule(**specs) self.module = basic.AnsibleModule(**specs)
self.tmpdir = pathlib.Path(self.module.tmpdir) self.tmpdir = pathlib.Path(self.module.tmpdir)