From df890459c58b830897db0e564b57c2401a996e0b Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Wed, 12 Nov 2025 11:16:00 +0000 Subject: [PATCH] ansible_mitogen: Remove maximum Ansible version check fixes #1218 --- ansible_mitogen/loaders.py | 17 ----------------- docs/changelog.rst | 1 + 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/ansible_mitogen/loaders.py b/ansible_mitogen/loaders.py index 9597e3ee..f753b6b5 100644 --- a/ansible_mitogen/loaders.py +++ b/ansible_mitogen/loaders.py @@ -49,18 +49,6 @@ __all__ = [ 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 = ( "Your version of Ansible (%s) is too old. The oldest version supported by " "Mitogen for Ansible is %s." @@ -78,11 +66,6 @@ def assert_supported_release(): 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 # in prior Ansible versions, connection_loader.get_with_context didn't exist, so if a user diff --git a/docs/changelog.rst b/docs/changelog.rst index adc5c33a..c02c084f 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -23,6 +23,7 @@ In progress (unreleased) * :gh:issue:`1243` :mod:`mitogen`: Pass first stage, context name, & preamble size as seperate **argv** arguments +* :gh:issue:`1218` :mod:`ansible_mitogen`: Remove maximum Ansible version check v0.3.31 (2025-11-05)