From 90ee5df4132c32c313718eacada7a374da299939 Mon Sep 17 00:00:00 2001 From: elementyang Date: Sat, 29 Dec 2018 14:31:47 +0800 Subject: [PATCH] fix registry_storage_class equals empty string --- roles/kubernetes-apps/registry/tasks/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/kubernetes-apps/registry/tasks/main.yml b/roles/kubernetes-apps/registry/tasks/main.yml index fd8cb82e3..05f8f4703 100644 --- a/roles/kubernetes-apps/registry/tasks/main.yml +++ b/roles/kubernetes-apps/registry/tasks/main.yml @@ -59,8 +59,8 @@ - { name: registry-pvc, file: registry-pvc.yml, type: pvc } register: registry_manifests when: - - registry_storage_class != none - - registry_disk_size != none + - 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 - - registry_disk_size != none + - registry_storage_class != none and registry_storage_class != "" + - registry_disk_size != none and registry_disk_size != "" - inventory_hostname == groups['kube-master'][0]