fix another bad import

This commit is contained in:
Steven Robertson 2020-02-11 18:46:14 -08:00
parent ee310c1a68
commit 91785f8862
1 changed files with 4 additions and 1 deletions

View File

@ -66,7 +66,6 @@ import ansible.utils.shlex
import ansible.constants as C import ansible.constants as C
from ansible.module_utils.six import with_metaclass 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 # this was added in Ansible >= 2.8.0; fallback to the default interpreter if necessary
try: try:
@ -74,6 +73,10 @@ try:
except ImportError: except ImportError:
discover_interpreter = lambda a,b,c,d: '/usr/bin/python' 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 import mitogen.core