adding hopefully new-style import that works for Ansible 2.10

pull/715/head
Steven Robertson 4 years ago
parent ce91d5ee25
commit 9e17c98f3f

@ -3,8 +3,10 @@
import sys import sys
# As of Ansible 2.10, Ansible changed new-style detection: # https://github.com/ansible/ansible/pull/61196/files#diff-5675e463b6ce1fbe274e5e7453f83cd71e61091ea211513c93e7c0b4d527d637L828-R980 # 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. # from ansible.module_utils.
# import ansible.module_utils.
def usage(): def usage():

Loading…
Cancel
Save