|
|
|
@ -49,18 +49,6 @@ __all__ = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ANSIBLE_VERSION_MIN = (2, 10)
|
|
|
|
ANSIBLE_VERSION_MIN = (2, 10)
|
|
|
|
ANSIBLE_VERSION_MAX = (2, 19)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NEW_VERSION_MSG = (
|
|
|
|
|
|
|
|
"Your Ansible version (%s) is too recent. The most recent version\n"
|
|
|
|
|
|
|
|
"supported by Mitogen for Ansible is %s.x. Please check the Mitogen\n"
|
|
|
|
|
|
|
|
"release notes to see if a new version is available, otherwise\n"
|
|
|
|
|
|
|
|
"subscribe to the corresponding GitHub issue to be notified when\n"
|
|
|
|
|
|
|
|
"support becomes available.\n"
|
|
|
|
|
|
|
|
"\n"
|
|
|
|
|
|
|
|
" https://mitogen.rtfd.io/en/latest/changelog.html\n"
|
|
|
|
|
|
|
|
" https://github.com/mitogen-hq/mitogen/issues/\n"
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
OLD_VERSION_MSG = (
|
|
|
|
OLD_VERSION_MSG = (
|
|
|
|
"Your version of Ansible (%s) is too old. The oldest version supported by "
|
|
|
|
"Your version of Ansible (%s) is too old. The oldest version supported by "
|
|
|
|
"Mitogen for Ansible is %s."
|
|
|
|
"Mitogen for Ansible is %s."
|
|
|
|
@ -78,11 +66,6 @@ def assert_supported_release():
|
|
|
|
OLD_VERSION_MSG % (v, ANSIBLE_VERSION_MIN)
|
|
|
|
OLD_VERSION_MSG % (v, ANSIBLE_VERSION_MIN)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
if v[:2] > ANSIBLE_VERSION_MAX:
|
|
|
|
|
|
|
|
raise ansible.errors.AnsibleError(
|
|
|
|
|
|
|
|
NEW_VERSION_MSG % (v, ANSIBLE_VERSION_MAX)
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# this is the first file our strategy plugins import, so we need to check this here
|
|
|
|
# this is the first file our strategy plugins import, so we need to check this here
|
|
|
|
# in prior Ansible versions, connection_loader.get_with_context didn't exist, so if a user
|
|
|
|
# in prior Ansible versions, connection_loader.get_with_context didn't exist, so if a user
|
|
|
|
|