فهرست منبع

Set openshift_hosted_registry_storage_swift_insecureskipverify's default

Mickaël Canévet 6 سال پیش
والد
کامیت
169664f73e
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      roles/openshift_hosted/templates/registry_config.j2

+ 2 - 2
roles/openshift_hosted/templates/registry_config.j2

@@ -1,6 +1,6 @@
 version: 0.1
 log:
-  level: {{ openshift_hosted_registry_log_level }} 
+  level: {{ openshift_hosted_registry_log_level }}
 http:
   addr: :5000
 storage:
@@ -56,7 +56,7 @@ storage:
 {%   if openshift_hosted_registry_storage_swift_domainid is defined %}
     domainid: {{ openshift_hosted_registry_storage_swift_domainid }}
 {%   endif -%}
-{%   if openshift_hosted_registry_storage_swift_insecureskipverify is defined %}
+{%   if openshift_hosted_registry_storage_swift_insecureskipverify | default(false) | bool %}
     insecureskipverify: {{ openshift_hosted_registry_storage_swift_insecureskipverify }}
 {%   endif -%}
 {% elif openshift_hosted_registry_storage_provider | default('') == 'gcs' %}