From 9e17c98f3fd2dc6c0adca9831101e2d22ca4f65e Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Sun, 25 Oct 2020 16:16:46 -0700 Subject: [PATCH] adding hopefully new-style import that works for Ansible 2.10 --- .../modules/custom_python_new_style_missing_interpreter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/ansible/lib/modules/custom_python_new_style_missing_interpreter.py b/tests/ansible/lib/modules/custom_python_new_style_missing_interpreter.py index 1d8e9ef6..2e0ef0da 100644 --- a/tests/ansible/lib/modules/custom_python_new_style_missing_interpreter.py +++ b/tests/ansible/lib/modules/custom_python_new_style_missing_interpreter.py @@ -3,8 +3,10 @@ import sys # As of Ansible 2.10, Ansible changed new-style detection: # https://github.com/ansible/ansible/pull/61196/files#diff-5675e463b6ce1fbe274e5e7453f83cd71e61091ea211513c93e7c0b4d527d637L828-R980 -# NOTE: this doesn't work for vanilla Ansible anymore +# NOTE: this import works for Mitogen, and the import below matches new-style Ansible 2.10 +# TODO: find out why 1 import won't work for both Mitogen and Ansible # from ansible.module_utils. +# import ansible.module_utils. def usage():