diff --git a/ansible_mitogen/loaders.py b/ansible_mitogen/loaders.py index 00a89b74..876cddc4 100644 --- a/ansible_mitogen/loaders.py +++ b/ansible_mitogen/loaders.py @@ -59,4 +59,6 @@ except ImportError: # Ansible <2.4 # These are original, unwrapped implementations action_loader__get = action_loader.get +# NOTE: this used to be `connection_loader.get`; breaking change unless we do a hack based on +# ansible version again connection_loader__get = connection_loader.get_with_context diff --git a/ansible_mitogen/strategy.py b/ansible_mitogen/strategy.py index c0ba6014..c48e8b7d 100644 --- a/ansible_mitogen/strategy.py +++ b/ansible_mitogen/strategy.py @@ -220,6 +220,8 @@ class AnsibleWrappers(object): with references to the real functions. """ ansible_mitogen.loaders.action_loader.get = wrap_action_loader__get + # NOTE: this used to be `connection_loader.get`; breaking change unless we do a hack based on + # ansible version again ansible_mitogen.loaders.connection_loader.get_with_context = wrap_connection_loader__get global worker__run