Skip to content

Commit 29f8af2

Browse files
committed
Fix [602] Don't compare to empty string
1 parent 7b884a6 commit 29f8af2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
- name: Fail if alerta secretkey not defined
1313
fail:
1414
msg: alerta_secretkey must be defined if you enable alerta authentification
15-
when: alerta_auth_required | bool and alerta_secretkey == ''
15+
when: alerta_auth_required | bool and not alerta_secretkey
1616

1717
- name: Define alerta_pip_packages
1818
set_fact:

0 commit comments

Comments
 (0)