Browse Source

change from none to len of the string

Davis Phillips 6 years ago
parent
commit
9cbfe9daa4

+ 1 - 1
roles/openshift_persistent_volumes/templates/persistent-volume-claim.yml.j2

@@ -18,7 +18,7 @@ items:
     resources:
       requests:
         storage: "{{ claim.capacity }}"
-{% if claim.storageclass is not none %}
+{% if claim.storageclass|length > 0 %}
     storageClassName: "{{ claim.storageclass }}"
 {% endif %}
 {% endfor %}