Skip to content

Commit

Permalink
bugfix: 修复插件筛选版本重复显示问题 (closed #1766)
Browse files Browse the repository at this point in the history
  • Loading branch information
wyyalt authored and ZhuoZhuoCrayon committed Aug 23, 2023
1 parent 87df46b commit 2731adb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/adapters/api/gse/v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down

0 comments on commit 2731adb

Please sign in to comment.