From 026e37e777ab1c25677bf3173e24cbd5ffb44362 Mon Sep 17 00:00:00 2001 From: DQ Date: Sun, 26 Apr 2020 13:04:29 +0800 Subject: [PATCH] Fix chart museum absolute url issue if absolute url is enabled return true else set it to false Signed-off-by: DQ --- make/photon/prepare/utils/configs.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/make/photon/prepare/utils/configs.py b/make/photon/prepare/utils/configs.py index 5a0cfadc9..e32596b1f 100644 --- a/make/photon/prepare/utils/configs.py +++ b/make/photon/prepare/utils/configs.py @@ -249,7 +249,10 @@ def parse_yaml_config(config_file_path, with_notary, with_clair, with_trivy, wit # Chart configs chart_configs = configs.get("chart") or {} - config_dict['chart_absolute_url'] = chart_configs.get('absolute_url') or '' + if chart_configs.get('absolute_url') == 'enabled': + config_dict['chart_absolute_url'] = True + else: + config_dict['chart_absolute_url'] = False # jobservice config js_config = configs.get('jobservice') or {}