Skip to content

Commit

Permalink
bugfix: Proxy 状态不准确 (closed TencentBlueKing#1668)
Browse files Browse the repository at this point in the history
  • Loading branch information
CohleRustW committed Jul 13, 2023
1 parent d571361 commit 45c258b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/node_man/handlers/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,9 @@ def proxies(bk_cloud_id: int):
pagent_upstream_nodes[ip] = 1

# 获得进程状态
statuses = ProcessStatus.objects.filter(proc_type=const.ProcType.AGENT, bk_host_id__in=bk_host_id_list).values(
"bk_host_id", "status", "version"
)
statuses = ProcessStatus.objects.filter(
proc_type=const.ProcType.AGENT, name=ProcessStatus.GSE_AGENT_PROCESS_NAME, bk_host_id__in=bk_host_id_list
).values("bk_host_id", "status", "version")

host_id_status = {
status["bk_host_id"]: {"status": status["status"], "version": status["version"]} for status in statuses
Expand Down

0 comments on commit 45c258b

Please sign in to comment.