From acdf69fd2fa71994791dc81f207fb350a829f2f5 Mon Sep 17 00:00:00 2001 From: yunchao Date: Wed, 23 Aug 2023 11:52:36 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20=20=E4=BF=AE=E5=A4=8D=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E7=AD=9B=E9=80=89=E7=89=88=E6=9C=AC=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98=20(closed=20#1766)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/adapters/api/gse/v2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/adapters/api/gse/v2.py b/apps/adapters/api/gse/v2.py index 5f6b2ae4f..48292d012 100644 --- a/apps/adapters/api/gse/v2.py +++ b/apps/adapters/api/gse/v2.py @@ -60,7 +60,7 @@ def _list_proc_state( for proc_info in proc_infos: proc_info["host"]["bk_agent_id"] = proc_info["bk_agent_id"] agent_id__proc_info_map[self.get_agent_id(proc_info)] = { - "version": proc_info.get("version") or "", + "version": self.get_version(proc_info.get("version")), "status": constants.PLUGIN_STATUS_DICT[proc_info["status"]], "is_auto": constants.AutoStateType.AUTO if proc_info["isauto"] else constants.AutoStateType.UNAUTO, "name": proc_info["meta"]["name"],