Skip to content

Commit 4bc7977

Browse files
committed
Correct broken conditions
Per the Ansible 2.19 porting guide [1]. [1] https://ansible.readthedocs.io/projects/ansible-core/devel/porting_guides/porting_guide_core_2.19.html Signed-off-by: Stephen Finucane <[email protected]>
1 parent 0a4146d commit 4bc7977

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/playbooks/roles/install-cpo-occm/tasks/main.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
msg: *failmsg
129129

130130
- name: Run functional tests for openstack-cloud-controller-manager
131-
when: run_e2e
131+
when: run_e2e | bool
132132
register: run_tests
133133
shell:
134134
executable: /bin/bash
@@ -145,7 +145,7 @@
145145

146146
- name: Print logs for debugging
147147
when:
148-
- run_e2e
148+
- run_e2e | bool
149149
- run_tests.failed
150150
block:
151151
- name: Show openstack-cloud-controller-manager pod logs

tests/playbooks/test-occm-e2e.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
- role: install-k3s
2626
worker_node_count: 0
2727
- role: install-cpo-occm
28-
run_e2e: "{{ run_e2e }}"
28+
run_e2e: "{{ run_e2e | bool }}"
2929
octavia_provider: "{{ octavia_provider }}"

0 commit comments

Comments
 (0)