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

@@ -59,8 +59,8 @@
- { name: registry-pvc, file: registry-pvc.yml, type: pvc }
register: registry_manifests
when:
- registry_storage_class != none and registry_storage_class != ""
- registry_disk_size != none and registry_disk_size != ""
- registry_storage_class != none and registry_storage_class
- registry_disk_size != none and registry_disk_size
- inventory_hostname == groups['kube-master'][0]
- name: Registry | Apply PVC manifests
@@ -73,6 +73,6 @@
state: "latest"
with_items: "{{ registry_manifests.results }}"
when:
- registry_storage_class != none and registry_storage_class != ""
- registry_disk_size != none and registry_disk_size != ""
- registry_storage_class != none and registry_storage_class
- registry_disk_size != none and registry_disk_size
- inventory_hostname == groups['kube-master'][0]