Browse Source

Adding a check for variable definition.

Kenny Woodson 7 năm trước cách đây
mục cha
commit
35919e1133
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      roles/openshift_hosted/templates/registry_config.j2

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

@@ -22,7 +22,7 @@ storage:
 {%   endif %}
     bucket: {{ openshift_hosted_registry_storage_s3_bucket }}
     encrypt: {{ openshift_hosted_registry_storage_s3_encrypt | default(false) }}
-{% if openshift_hosted_registry_storage_s3_kmskeyid %}
+{% if openshift_hosted_registry_storage_s3_kmskeyid is defined %}
     keyid: {{ openshift_hosted_registry_storage_s3_kmskeyid }}
 {% endif %}
     secure: true