From 7bea146149ac310e209fb0a05f4aece2294bc3ac Mon Sep 17 00:00:00 2001 From: ycggyao Date: Mon, 21 Apr 2025 19:57:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(backend):=20=E4=B8=BB=E6=9C=BA=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E5=99=A8=E5=AE=9E=E4=BE=8B=E8=A7=92=E8=89=B2=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=E9=97=AE=E9=A2=98=20#10192=20#=20Reviewed,=20transact?= =?UTF-8?q?ion=20id:=2039693?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dbm-ui/backend/db_services/dbbase/resources/query.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbm-ui/backend/db_services/dbbase/resources/query.py b/dbm-ui/backend/db_services/dbbase/resources/query.py index 664cd1655c..9641f853e2 100644 --- a/dbm-ui/backend/db_services/dbbase/resources/query.py +++ b/dbm-ui/backend/db_services/dbbase/resources/query.py @@ -855,8 +855,8 @@ def _list_machines( "bk_agent_id": Q(bk_agent_id=query_params.get("bk_agent_id")), "cluster_type": Q(cluster_type=query_params.get("cluster_type")), "instance_role": ( - Q(storageinstance__instance_role=query_params.get("instance_role", "").split(",")) - | Q(proxyinstance__access_layer=query_params.get("instance_role", "").split(",")) + Q(storageinstance__instance_role__in=query_params.get("instance_role", "").split(",")) + | Q(proxyinstance__access_layer__in=query_params.get("instance_role", "").split(",")) ), "instance_status": ( Q(storageinstance__status=query_params.get("instance_status"))