From 61d1d0b413a70cffa83706dddeb116744dfe1468 Mon Sep 17 00:00:00 2001 From: yminer Date: Mon, 11 Sep 2023 06:01:16 +0000 Subject: [PATCH] (cherry-pick) fix storage.redirect.disable migrate template error Signed-off-by: yminer update boolean to lowercase --- .../prepare/migrations/version_2_8_0/harbor.yml.jinja | 6 +++--- .../prepare/migrations/version_2_9_0/harbor.yml.jinja | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/make/photon/prepare/migrations/version_2_8_0/harbor.yml.jinja b/make/photon/prepare/migrations/version_2_8_0/harbor.yml.jinja index eb061f92e1f..2c5d430fb35 100644 --- a/make/photon/prepare/migrations/version_2_8_0/harbor.yml.jinja +++ b/make/photon/prepare/migrations/version_2_8_0/harbor.yml.jinja @@ -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 diff --git a/make/photon/prepare/migrations/version_2_9_0/harbor.yml.jinja b/make/photon/prepare/migrations/version_2_9_0/harbor.yml.jinja index 4f9a79cf8ec..1ab5ee9067a 100644 --- a/make/photon/prepare/migrations/version_2_9_0/harbor.yml.jinja +++ b/make/photon/prepare/migrations/version_2_9_0/harbor.yml.jinja @@ -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