From 1ac01066c7d47c2f5082fd56db06cf73d28b6b18 Mon Sep 17 00:00:00 2001 From: xuyan wang <35394786+wayyoungboy@users.noreply.github.com> Date: Thu, 5 Dec 2024 20:42:19 +0800 Subject: [PATCH] fix parse_env_display when env_list is None (#602) * support check list * support check list * support check list * support check list * support check list * support check list * build test package * build test package * update GatherComponentLogHandler * update tar_gz_to_zip * delete zip on gather * delete zip on gather * delete zip on gather * delete zip on gather * delete zip on gather * gather use find to get remote log * rca add oms_full_trans * rca add oms_full_trans * update * fix core options * add oms config * check list add --all * fix parse_env_display when env_list is None --- common/tool.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/tool.py b/common/tool.py index 96e49d13..1a03f949 100644 --- a/common/tool.py +++ b/common/tool.py @@ -1235,6 +1235,8 @@ def parse_env(env_string, stdio=None): @staticmethod def parse_env_display(env_list): env_dict = {} + if not env_list: + return {} for env_string in env_list: # 分割键和值 key_value = env_string.split('=', 1)