Explorar o código

Fix empty list comparison throwing valueerror

Dan Ragnar %!s(int64=8) %!d(string=hai) anos
pai
achega
15336acf4a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tasks/plugins.yml

+ 1 - 1
tasks/plugins.yml

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