fix storage.redirect.disable migrate template error (#19335)

Signed-off-by: yminer <yminer@vmware.com>

update boolean to lowercase
This commit is contained in:
MinerYang 2023-09-12 11:56:12 +08:00 committed by GitHub
parent d55823d888
commit eb0724d130
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -105,10 +105,10 @@ storage_service:
{% elif key == 'redirect' %}
# # set disable to true when you want to disable registry redirect
redirect:
{% if value.disabled is not none %}
disable: {{ value.disabled }}
{% if storage_service.redirect.disabled is defined %}
disable: {{ storage_service.redirect.disabled | lower}}
{% else %}
disable: {{ value.disable }}
disable: {{ storage_service.redirect.disable | lower}}
{% endif %}
{% else %}
# # storage backend, default is filesystem, options include filesystem, azure, gcs, s3, swift and oss

View File

@ -113,10 +113,10 @@ storage_service:
{% elif key == 'redirect' %}
# # set disable to true when you want to disable registry redirect
redirect:
{% if value.disabled is not none %}
disable: {{ value.disabled }}
{% if storage_service.redirect.disabled is defined %}
disable: {{ storage_service.redirect.disabled | lower}}
{% else %}
disable: {{ value.disable }}
disable: {{ storage_service.redirect.disable | lower}}
{% endif %}
{% else %}
# # storage backend, default is filesystem, options include filesystem, azure, gcs, s3, swift and oss