|
|
|
@ -75,7 +75,14 @@ except ImportError:
|
|
|
|
|
LOG = logging.getLogger(__name__)
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
class ActionModuleMixin(ansible.plugins.action.ActionBase):
|
|
|
|
|
BaseActionClass = ansible.plugins.action.ActionBase
|
|
|
|
|
except AttributeError:
|
|
|
|
|
# collections were added in https://github.com/ansible/ansible/pull/52194/files
|
|
|
|
|
# monkeypatching collections since they don't have an actionBase
|
|
|
|
|
BaseActionClass = type('DummyActionBase', (object,), {})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ActionModuleMixin(BaseActionClass):
|
|
|
|
|
"""
|
|
|
|
|
The Mitogen-patched PluginLoader dynamically mixes this into every action
|
|
|
|
|
class that Ansible attempts to load. It exists to override all the
|
|
|
|
@ -519,8 +526,3 @@ try:
|
|
|
|
|
'stdout_lines': stdout_text.splitlines(),
|
|
|
|
|
'stderr': stderr,
|
|
|
|
|
}
|
|
|
|
|
except AttributeError:
|
|
|
|
|
# if we're loading collections, there is no ActionBase
|
|
|
|
|
# collections are implemented via an import hook
|
|
|
|
|
# https://github.com/ansible/ansible/pull/52194/files
|
|
|
|
|
pass
|
|
|
|
|