From 3ba7f5b6310607385f9dfe369fb7ef3acd75a12f Mon Sep 17 00:00:00 2001 From: huangpixu Date: Mon, 9 Dec 2024 16:34:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20ugettext=5Flazy=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BAgettext=5Flazy=20#7625?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/collections/sites/open/cc/base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pipeline_plugins/components/collections/sites/open/cc/base.py b/pipeline_plugins/components/collections/sites/open/cc/base.py index 9498f42fe..714f13765 100644 --- a/pipeline_plugins/components/collections/sites/open/cc/base.py +++ b/pipeline_plugins/components/collections/sites/open/cc/base.py @@ -203,7 +203,10 @@ def cc_get_host_id_by_innerip_and_cloudid(executor, bk_biz_id, ip_str, supplier_ else: return_innerip_set.add(host["bk_host_innerip"]) absent_innerip = set(ipv4s).difference(return_innerip_set) - message = f"IP[{', '.join(absent_innerip)}]在本业务下不存在: 请检查配置, 修复后重新执行|cc_get_host_id_by_innerip_and_cloudid" + message = ( + f"IP [{', '.join(absent_innerip)}] 在本业务下不存在: " + "请检查配置, 修复后重新执行 | cc_get_host_id_by_innerip_and_cloudid" + ) logger.error(message) return {"result": False, "message": message} hosts.extend(host_list)