From 91785f8862fd492a2c6d12ae38c81d5b78108c02 Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Tue, 11 Feb 2020 18:46:14 -0800 Subject: [PATCH] fix another bad import --- ansible_mitogen/transport_config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ansible_mitogen/transport_config.py b/ansible_mitogen/transport_config.py index 5b043bca..7c3c7643 100644 --- a/ansible_mitogen/transport_config.py +++ b/ansible_mitogen/transport_config.py @@ -66,7 +66,6 @@ import ansible.utils.shlex import ansible.constants as C from ansible.module_utils.six import with_metaclass -from ansible.utils.unsafe_proxy import AnsibleUnsafeText # this was added in Ansible >= 2.8.0; fallback to the default interpreter if necessary try: @@ -74,6 +73,10 @@ try: except ImportError: discover_interpreter = lambda a,b,c,d: '/usr/bin/python' +try: + from ansible.utils.unsafe_proxy import AnsibleUnsafeText +except ImportError: + from ansible.vars.unsafe_proxy import AnsibleUnsafeText import mitogen.core