From d74da84f62e78e80485e2b7555d8d15aa68e1a4d Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Mon, 10 Feb 2020 17:59:24 -0800 Subject: [PATCH] the clean module was added later --- ansible_mitogen/mixins.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ansible_mitogen/mixins.py b/ansible_mitogen/mixins.py index d987d128..fd90bb78 100644 --- a/ansible_mitogen/mixins.py +++ b/ansible_mitogen/mixins.py @@ -54,13 +54,17 @@ import ansible_mitogen.connection import ansible_mitogen.planner import ansible_mitogen.target from ansible.module_utils._text import to_text -from ansible.vars.clean import remove_internal_keys try: from ansible.utils.unsafe_proxy import wrap_var except ImportError: from ansible.vars.unsafe_proxy import wrap_var +try: + from ansible.vars.clean import remove_internal_keys +except ImportError: + from ansible.vars.manager import remove_internal_keys + LOG = logging.getLogger(__name__)