Skip to content

Commit

Permalink
fix(backend): tendbcluster实例详情过滤报错 TencentBlueKing#7347
Browse files Browse the repository at this point in the history
  • Loading branch information
iSecloud committed Oct 15, 2024
1 parent 2d76b44 commit 9e1acb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dbm-ui/backend/db_services/mysql/cluster/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from collections import defaultdict
from typing import Any, Dict, List

from django.db.models import Q
from django.db.models import Q, Value
from django.db.models.query import QuerySet
from django.forms import model_to_dict

Expand Down Expand Up @@ -170,6 +170,7 @@ def _get_instance_objs(self, instances: List[DBInstance]):
Q(machine__bk_host_id__in=bk_host_ids)
& Q(tendbclusterspiderext__spider_role=TenDBClusterSpiderRole.SPIDER_MASTER.value)
)
.annotate(role=Value("spider_ctl"))
)
# 覆写port为admin port
for instance in controller_instances:
Expand Down

0 comments on commit 9e1acb7

Please sign in to comment.