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

@@ -2,7 +2,7 @@
- name: check vsphere environment variables
fail:
msg: "{{ item.name }} is missing"
when: item.value is not defined or item.value == ''
when: item.value is not defined or not item.value
with_items:
- name: vsphere_vcenter_ip
value: "{{ vsphere_vcenter_ip }}"