Merge "CI: Run jobs for all non-EOL Ansible versions"

This commit is contained in:
Zuul
2026-05-05 11:21:41 +00:00
committed by Gerrit Code Review
5 changed files with 100 additions and 20 deletions

View File

@@ -32,16 +32,15 @@
import abc
import copy
from ansible.module_utils.six import raise_from
try:
from ansible.module_utils.compat.version import StrictVersion
except ImportError:
try:
from distutils.version import StrictVersion
except ImportError as exc:
raise_from(ImportError('To use this plugin or module with ansible-core'
' < 2.11, you need to use Python < 3.12 with '
'distutils.version present'), exc)
raise ImportError(f'To use this plugin or module with ansible-core'
f' < 2.11, you need to use Python < 3.12 with '
f'distutils.version present. {exc}')
import importlib
import os