From 279df316c1c39613ba24511b54dbc533efe96287 Mon Sep 17 00:00:00 2001 From: zhangxinhui02 Date: Tue, 23 Dec 2025 03:09:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(helm=20chart):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=A9=BA=E5=80=BC=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helm-chart/preprocessor/preprocessor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helm-chart/preprocessor/preprocessor.py b/helm-chart/preprocessor/preprocessor.py index 0edef8bd..86407641 100644 --- a/helm-chart/preprocessor/preprocessor.py +++ b/helm-chart/preprocessor/preprocessor.py @@ -122,7 +122,7 @@ def write_config_files(): """当注入了配置文件时(一般是首次安装或者用户指定覆盖),将helm chart注入的配置写入存储卷中的实际文件""" func_name = 'write_config_files' log(func_name, 'Detecting config files...') - if config_adapter_b64.strip(): + if config_adapter_b64: log(func_name, '\tWriting `config.toml` of adapter...') config_str = base64.b64decode(config_adapter_b64).decode("utf-8") with open('/app/config/adapter/config.toml', 'w', encoding='utf-8') as _f: @@ -134,13 +134,13 @@ def write_config_files(): with open('/app/config/core/.env', 'w', encoding='utf-8') as _f: _f.write(config_str) log(func_name, '\t`.env` of core wrote.') - if config_core_bot_b64.strip(): + if config_core_bot_b64: log(func_name, '\tWriting `bot_config.toml` of core not found. Creating...') config_str = base64.b64decode(config_core_bot_b64).decode("utf-8") with open('/app/config/core/bot_config.toml', 'w', encoding='utf-8') as _f: _f.write(config_str) log(func_name, '\t`bot_config.toml` of core wrote.') - if config_core_model_b64.strip(): + if config_core_model_b64: log(func_name, '\tWriting `model_config.toml` of core...') config_str = base64.b64decode(config_core_model_b64).decode("utf-8") with open('/app/config/core/model_config.toml', 'w', encoding='utf-8') as _f: