فهرست منبع

Merge pull request #8854 from dav1x/none_sc_fix

change sc creation from none to len of the string
Scott Dodson 6 سال پیش
والد
کامیت
e5a17136c1
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      roles/openshift_persistent_volumes/templates/persistent-volume-claim.yml.j2

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