From 03438271bbc00524c2904927d7fb9410e6b6230c Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Thu, 27 Aug 2020 20:01:47 -0700 Subject: [PATCH] able to remove the hack on ActionBase after all --- ansible_mitogen/mixins.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/ansible_mitogen/mixins.py b/ansible_mitogen/mixins.py index ec88e414..7672618d 100644 --- a/ansible_mitogen/mixins.py +++ b/ansible_mitogen/mixins.py @@ -74,15 +74,8 @@ except ImportError: LOG = logging.getLogger(__name__) -try: - BaseActionClass = ansible.plugins.action.ActionBase -except AttributeError: - # full collection support was added in v2.10.0 - # monkeypatching collections since they don't have an actionBase - BaseActionClass = type('DummyActionBase', (object,), {}) - -class ActionModuleMixin(BaseActionClass): +class ActionModuleMixin(ansible.plugins.action.ActionBase): """ The Mitogen-patched PluginLoader dynamically mixes this into every action class that Ansible attempts to load. It exists to override all the