From d48c725016564b2eb17d7324413dc4690736b53d Mon Sep 17 00:00:00 2001 From: wyyalt Date: Wed, 25 Oct 2023 15:01:32 +0800 Subject: [PATCH] =?UTF-8?q?optimization:=20=20=E5=AE=89=E8=A3=85Gse2.0=20?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2Agent=E7=8A=B6=E6=80=81=E4=BC=98=E5=8C=96=20?= =?UTF-8?q?=20(closed=20#1883)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/collections/agent_new/get_agent_status.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/apps/backend/components/collections/agent_new/get_agent_status.py b/apps/backend/components/collections/agent_new/get_agent_status.py index 269f99467..912fb1540 100644 --- a/apps/backend/components/collections/agent_new/get_agent_status.py +++ b/apps/backend/components/collections/agent_new/get_agent_status.py @@ -71,8 +71,6 @@ def _schedule(self, data, parent_data, callback_data=None): for host_id in host_ids_need_to_query: sub_inst_id = common_data.host_id__sub_inst_id_map["host_id"] sub_inst = common_data.sub_inst_id__sub_inst_obj_map[sub_inst_id] - - bk_agent_id: Optional[str] = sub_inst.instance_info["host"].get("bk_agent_id") host_obj = common_data.host_id_obj_map[host_id] bk_agent_id: Optional[str] = sub_inst.instance_info["host"].get("bk_agent_id") or host_obj.bk_agent_id