Skip to content

Commit 81f0753

Browse files
Klaus ZerwesKlaus Zerwes
authored andcommitted
use conditionals in list form
1 parent ffb58cd commit 81f0753

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

tests/ansible/integration/interpreter_discovery/ansible_2_8_tests.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,19 +75,21 @@
7575
- legacy.deprecations | default([]) | length > 0
7676
fail_msg: legacy={{legacy}}
7777
# only check for a dep warning if legacy returned /usr/bin/python and auto didn't
78-
when: legacy.ansible_facts.discovered_interpreter_python == '/usr/bin/python' and
79-
auto_out.ansible_facts.discovered_interpreter_python != '/usr/bin/python' and
80-
ansible_version.full is version_compare('2.12.0', '<', strict=True)
78+
when:
79+
- legacy.ansible_facts.discovered_interpreter_python == '/usr/bin/python'
80+
- auto_out.ansible_facts.discovered_interpreter_python != '/usr/bin/python'
81+
- ansible_version.full is version_compare('2.12.0', '<', strict=True)
8182

8283
- name: check for warning (only on platforms where auto result is not /usr/bin/python and legacy is) from ansible 2.12 on
8384
assert:
8485
that:
8586
- legacy.warnings | default([]) | length > 0
8687
fail_msg: legacy={{legacy}}
8788
# only check for a warning if legacy returned /usr/bin/python and auto didn't
88-
when: legacy.ansible_facts.discovered_interpreter_python == '/usr/bin/python' and
89-
auto_out.ansible_facts.discovered_interpreter_python != '/usr/bin/python' and
90-
ansible_version.full is version_compare('2.12.0', '>=', strict=True)
89+
when:
90+
- legacy.ansible_facts.discovered_interpreter_python == '/usr/bin/python'
91+
- auto_out.ansible_facts.discovered_interpreter_python != '/usr/bin/python'
92+
- ansible_version.full is version_compare('2.12.0', '>=', strict=True)
9193

9294
- name: test that auto_silent never warns and got the same answer as auto
9395
block:

0 commit comments

Comments
 (0)