Skip to content

Commit

Permalink
fix: fix list aliases rpc call (#2399)
Browse files Browse the repository at this point in the history
ListAliases SDK rpc call is `describeCollection`, which causes listing
aliases successfully without granted.
issue: milvus-io/milvus#38052

Signed-off-by: shaoting-huang <[email protected]>
  • Loading branch information
shaoting-huang authored Dec 4, 2024
1 parent bd0cbff commit 13d0664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymilvus/orm/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]


Expand Down

0 comments on commit 13d0664

Please sign in to comment.