Skip to content

Commit

Permalink
ec2_metadata_facts - Skip tests against 2.7 hosts when running Ansibl…
Browse files Browse the repository at this point in the history
…e-core >= 2.17 (#1893)

ec2_metadata_facts - Skip tests against 2.7 hosts when running Ansible-core >= 2.17

SUMMARY
ansible-core 2.17 will drop support for Python 2.7.  While in general we require Python > 3.7, we've had an exception for ec2_metadata_facts since it doesn't actually need botocore and it's used outside of the AWS ecosystem.
Unfortunately it's no longer possible to test against 2.7 targets using the devel branch, so we'll have to skip those tests in CI (can still be run locally if folks are using ansible-core <2.17
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
ec2_metadata_facts
ADDITIONAL INFORMATION

Reviewed-by: Alina Buzachis
Reviewed-by: Mike Graves <[email protected]>
(cherry picked from commit 06b729c)
  • Loading branch information
tremble authored and patchback[bot] committed Dec 4, 2023
1 parent e8bcfd9 commit 84c53c9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

[testhost:children]
testhost_py3
{% if ansible_version.full is version_compare('2.17', '<') %}
testhost_py2
{% endif %}

[testhost:vars]
ansible_ssh_private_key_file="{{ sshkey }}"
Expand Down

0 comments on commit 84c53c9

Please sign in to comment.