Преглед изворни кода

[602] Dont compare to empty string

Signed-off-by: Jared Ledvina <jared@techsmix.net>
Jared Ledvina пре 6 година
родитељ
комит
c10612d0cd
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      tasks/CentOS/main.yml

+ 2 - 2
tasks/CentOS/main.yml

@@ -34,8 +34,8 @@
   tags: setup
   assert:
     that:
-      - "se_user != ''"
-      - "se_pass != ''"
+      - se_user
+      - se_pass
     msg: Sensu enterprise credential must not be empty. Did you forget to set se_user and se_pass?
   when: se_enterprise