diff --git a/plugins/module_utils/module.py b/plugins/module_utils/module.py index fc77ae7..e282dcf 100644 --- a/plugins/module_utils/module.py +++ b/plugins/module_utils/module.py @@ -1,7 +1,6 @@ import pathlib from copy import deepcopy 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 @@ -63,8 +62,6 @@ class AnsibleModule(object): 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` _common_args: ClassVar[dict[str, Any]] = dict() - #: For log messages - display: Display @property def params(self) -> Dict[str, Any]: @@ -80,7 +77,6 @@ class AnsibleModule(object): specs["argument_spec"].update(modspec["argument_spec"]) del modspec["argument_spec"] specs.update(modspec) - self.display = Display() self.module = basic.AnsibleModule(**specs) self.tmpdir = pathlib.Path(self.module.tmpdir)