From 8b1b6c8fa3e10fb15d6992c58f58ba076c821554 Mon Sep 17 00:00:00 2001 From: sthuang <167743503+shaoting-huang@users.noreply.github.com> Date: Wed, 4 Dec 2024 11:18:31 +0800 Subject: [PATCH] fix: fix list aliases rpc call (#2399) ListAliases SDK rpc call is `describeCollection`, which causes listing aliases successfully without granted. issue: https://github.com/milvus-io/milvus/issues/38052 Signed-off-by: shaoting-huang --- pymilvus/orm/utility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymilvus/orm/utility.py b/pymilvus/orm/utility.py index 7844dbb66..e94866156 100644 --- a/pymilvus/orm/utility.py +++ b/pymilvus/orm/utility.py @@ -774,7 +774,7 @@ def list_aliases(collection_name: str, timeout: Optional[float] = None, using: s ['tom'] """ conn = _get_connection(using) - resp = conn.describe_collection(collection_name, timeout=timeout) + resp = conn.list_aliases(collection_name, timeout=timeout) return resp["aliases"]