ansible-lint: don't compare to empty string [E602] (#4665)

This commit is contained in:
MarkusTeufelberger
2019-04-29 08:00:20 +02:00
committed by Kubernetes Prow Robot
parent f518b90c6b
commit 88d919337e
17 changed files with 89 additions and 71 deletions

View File

@@ -15,4 +15,4 @@
changed_when: no
- name: Disable swap
command: /sbin/swapoff -a
when: swapon.stdout != ""
when: swapon.stdout

View File

@@ -146,7 +146,7 @@
when:
- kube_network_plugin == 'calico'
- 'calico_version_on_server.stdout is defined'
- 'calico_version_on_server.stdout != ""'
- calico_version_on_server.stdout
- inventory_hostname == groups['kube-master'][0]
run_once: yes