From f1bdc39047844aaa94780e8f1c762a4a4391628e Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Sun, 23 Aug 2020 17:32:58 -0700 Subject: [PATCH] added note about breaking backwards compat --- ansible_mitogen/loaders.py | 2 ++ ansible_mitogen/strategy.py | 2 ++ 2 files changed, 4 insertions(+) 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