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"))