소스 검색

Adding a check for variable definition.

Kenny Woodson 8 년 전
부모
커밋
35919e1133
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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