Przeglądaj źródła

Use 'length' filter on remote plugins conditional

cmacrae 9 lat temu
rodzic
commit
2e5ffe631c
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      tasks/plugins.yml

+ 1 - 1
tasks/plugins.yml

@@ -14,7 +14,7 @@
     shell: sensu-install -p {{ item }}
     shell: sensu-install -p {{ item }}
     with_items: sensu_remote_plugins
     with_items: sensu_remote_plugins
     changed_when: false
     changed_when: false
-    when: sensu_remote_plugins > 0
+    when: sensu_remote_plugins|length > 0
 
 
   - name: Register available checks
   - name: Register available checks
     local_action: command ls {{ static_data_store }}/sensu/checks
     local_action: command ls {{ static_data_store }}/sensu/checks