Skip to content

Commit

Permalink
optimization: 安装Gse2.0 查询Agent状态优化 (closed TencentBlueKing#1883)
Browse files Browse the repository at this point in the history
  • Loading branch information
wyyalt committed Oct 25, 2023
1 parent 8f6a152 commit d48c725
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d48c725

Please sign in to comment.