Browse Source

Merge pull request #8854 from dav1x/none_sc_fix

change sc creation from none to len of the string
Scott Dodson 6 years ago
parent
commit
e5a17136c1

+ 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 %}