Skip to content

Commit

Permalink
Remove old version checks
Browse files Browse the repository at this point in the history
  • Loading branch information
swalkinshaw committed Dec 11, 2021
1 parent d93bb3f commit aa78f3a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/trellis/plugins/vars/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@

version_requirement = '2.10.0'
version_tested_max = '2.10.16'
python3_required_version = '2.5.3'

if version_info[0] == 3 and not ge(LooseVersion(__version__), LooseVersion(python3_required_version)):
raise AnsibleError(('Ansible >= {} is required when using Python 3.\n'
'Either downgrade to Python 2 or update your Ansible version to {}.').format(python3_required_version, python3_required_version))

if not ge(LooseVersion(__version__), LooseVersion(version_requirement)):
raise AnsibleError(('Trellis no longer supports Ansible {}.\n'
Expand All @@ -30,10 +25,6 @@
u'compatability with Ansible {} -> {}. It is advisable to check for Trellis updates or '
u'downgrade your Ansible version.'.format(__version__, version_requirement, version_tested_max))

if eq(LooseVersion(__version__), LooseVersion('2.5.0')):
display.warning(u'Your Ansible version is {}. Consider upgrading your Ansible version to avoid '
u'erroneous warnings such as `Removed restricted key from module data...`'.format(__version__))

# Import BaseVarsPlugin after Ansible version check.
# Otherwise import error for Ansible versions older than 2.4 would prevent display of version check message.
from ansible.plugins.vars import BaseVarsPlugin
Expand Down

0 comments on commit aa78f3a

Please sign in to comment.