Skip to content

Commit

Permalink
fix(backend): 容量变更问题修复 #9039
Browse files Browse the repository at this point in the history
  • Loading branch information
iSecloud committed Jan 13, 2025
1 parent 05b6bf4 commit a39ea94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbm-ui/backend/db_services/dbbase/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ def query_cluster_stat(self, request, *args, **kwargs):
for cluster_type in data["cluster_type"].split(","):
cluster_stat_map.update(sync_cluster_stat_by_cluster_type(data["bk_biz_id"], cluster_type))

cluster_domain_qs = Cluster.objects.filter(bk_biz_id=3).values("immute_domain", "id")
cluster_domain_qs = Cluster.objects.filter(bk_biz_id=data["bk_biz_id"]).values("immute_domain", "id")
cluster_domain_map = {cluster["immute_domain"]: cluster["id"] for cluster in cluster_domain_qs}
cluster_stat_map = {
cluster_domain_map[domain]: cap for domain, cap in cluster_stat_map.items() if domain in cluster_domain_map
Expand Down

0 comments on commit a39ea94

Please sign in to comment.