From fe2ab20c376211184ac24c9cf7212c8a4da3d4bd Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 26 Mar 2024 10:03:30 -0400 Subject: [PATCH] fix invocation --- lib/ansible/plugins/action/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ansible/plugins/action/__init__.py b/lib/ansible/plugins/action/__init__.py index 9ac3ce93031..27073f0329d 100644 --- a/lib/ansible/plugins/action/__init__.py +++ b/lib/ansible/plugins/action/__init__.py @@ -87,6 +87,8 @@ class ActionBase(ABC): # Backwards compat: self._display isn't really needed, just import the global display and use that. self._display = display + self._found = {} + @abstractmethod def run(self, tmp=None, task_vars=None): """ Action Plugins should implement this method to perform their @@ -218,7 +220,7 @@ class ActionBase(ABC): return True return False - def _get_module(self, module_name): + def _get_module(self, module_name, module_args): if module_name not in self._found: