Skip to content

Commit 531a979

Browse files
committed
Fix conditionals.
1 parent 50a5754 commit 531a979

File tree

1 file changed

+10
-10
lines changed
  • tests/integration/targets/lookup_bakery/tasks

1 file changed

+10
-10
lines changed

tests/integration/targets/lookup_bakery/tasks/test.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@
2525

2626
- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Verify bakery status."
2727
ansible.builtin.assert:
28-
that: ("'finished' in __checkmk_var_result_bakery.msg") or
29-
("'running' in __checkmk_var_result_bakery.msg") or
30-
("'initialized' in __checkmk_var_result_bakery.msg") or
31-
("'stopped' in __checkmk_var_result_bakery.msg") or
32-
("'exception' in __checkmk_var_result_bakery.msg")
28+
that: ("'finished' in __checkmk_var_result_bakery.msg") | bool or
29+
("'running' in __checkmk_var_result_bakery.msg") | bool or
30+
("'initialized' in __checkmk_var_result_bakery.msg") | bool or
31+
("'stopped' in __checkmk_var_result_bakery.msg") | bool or
32+
("'exception' in __checkmk_var_result_bakery.msg") | bool
3333

3434
- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Use variables outside the module call."
3535
ansible.builtin.assert:
36-
that: ("'finished' in __checkmk_var_result_bakery_module.msg") or
37-
("'running' in __checkmk_var_result_bakery_module.msg") or
38-
("'initialized' in __checkmk_var_result_bakery_module.msg") or
39-
("'stopped' in __checkmk_var_result_bakery_module.msg") or
40-
("'exception' in __checkmk_var_result_bakery_module.msg")
36+
that: ("'finished' in __checkmk_var_result_bakery_module.msg") | bool or
37+
("'running' in __checkmk_var_result_bakery_module.msg") | bool or
38+
("'initialized' in __checkmk_var_result_bakery_module.msg") | bool or
39+
("'stopped' in __checkmk_var_result_bakery_module.msg") | bool or
40+
("'exception' in __checkmk_var_result_bakery_module.msg") | bool
4141
vars:
4242
__checkmk_var_result_bakery_module: "{{ lookup('checkmk.general.bakery') }}"
4343
delegate_to: localhost

0 commit comments

Comments
 (0)