Skip to content

Commit d820233

Browse files
ygcyaoiSecloud
authored andcommitted
fix(backend): 主机选择器实例角色过滤问题 #10192
# Reviewed, transaction id: 39693
1 parent b6f2f42 commit d820233

File tree

1 file changed

+2
-2
lines changed
  • dbm-ui/backend/db_services/dbbase/resources

1 file changed

+2
-2
lines changed

dbm-ui/backend/db_services/dbbase/resources/query.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -855,8 +855,8 @@ def _list_machines(
855855
"bk_agent_id": Q(bk_agent_id=query_params.get("bk_agent_id")),
856856
"cluster_type": Q(cluster_type=query_params.get("cluster_type")),
857857
"instance_role": (
858-
Q(storageinstance__instance_role=query_params.get("instance_role", "").split(","))
859-
| Q(proxyinstance__access_layer=query_params.get("instance_role", "").split(","))
858+
Q(storageinstance__instance_role__in=query_params.get("instance_role", "").split(","))
859+
| Q(proxyinstance__access_layer__in=query_params.get("instance_role", "").split(","))
860860
),
861861
"instance_status": (
862862
Q(storageinstance__status=query_params.get("instance_status"))

0 commit comments

Comments
 (0)