Skip to content

Commit

Permalink
fix: 修复host_search接口业务拓扑丢失 (closed TencentBlueKing#2449)
Browse files Browse the repository at this point in the history
  • Loading branch information
Huayeaaa committed Oct 29, 2024
1 parent 7f47072 commit 4ca85b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/node_man/handlers/cmdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ def cmdb_or_cache_topo(self, username: str, user_biz: dict, biz_host_id_map: dic
user_page_topology_cache = cache.get(username + "_" + str(biz_host_id_map) + "_topo_cache")

if user_page_topology_cache:
# 如果存在缓存则返回
# 如果存在缓存则返回,缓存读出来的key为str,适配后续逻辑转化成整型
user_page_topology_cache = {int(key): value for key, value in user_page_topology_cache.items()}
return user_page_topology_cache
else:
# 缓存已过期,重新获取
Expand Down

0 comments on commit 4ca85b6

Please sign in to comment.