added note about breaking backwards compat

This commit is contained in:
Steven Robertson 2020-08-23 17:32:58 -07:00
parent 1d13df718a
commit f1bdc39047
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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