From 292390dabe7904edf92a37298fc58741b338b93a Mon Sep 17 00:00:00 2001 From: sthuang <167743503+shaoting-huang@users.noreply.github.com> Date: Tue, 24 Dec 2024 16:04:42 +0800 Subject: [PATCH] fix: [2.5] fix privilege typo (#2512) cherry-pick from master: https://github.com/milvus-io/pymilvus/pull/2510 related: https://github.com/milvus-io/milvus/issues/37031 Signed-off-by: shaoting-huang --- pymilvus/client/types.py | 2 +- pymilvus/milvus_client/milvus_client.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pymilvus/client/types.py b/pymilvus/client/types.py index c3e3882d8..2916d41f8 100644 --- a/pymilvus/client/types.py +++ b/pymilvus/client/types.py @@ -717,7 +717,7 @@ def privileges(self): class PrivilegeGroupInfo: """ PrivilegeGroupInfo groups: - - PrivilegeGroupItem: , + - PrivilegeGroupItem: , """ def __init__(self, results: List[milvus_types.PrivilegeGroupInfo]) -> None: diff --git a/pymilvus/milvus_client/milvus_client.py b/pymilvus/milvus_client/milvus_client.py index e1cf7d642..d58f0f77a 100644 --- a/pymilvus/milvus_client/milvus_client.py +++ b/pymilvus/milvus_client/milvus_client.py @@ -1478,7 +1478,7 @@ def list_privilege_groups( raise ex from ex ret = [] for g in res.groups: - ret.append({"privilge_group": g.privilege_group, "privileges": g.privileges}) + ret.append({"privilege_group": g.privilege_group, "privileges": g.privileges}) return ret def add_privileges_to_group( @@ -1493,7 +1493,7 @@ def add_privileges_to_group( Args: group_name (``str``): The name of the privilege group. privileges (``List[str]``): A list of privileges to be added to the group. - Privilges should be the same type in a group otherwise it will raise an exception. + Privileges should be the same type in a group otherwise it will raise an exception. timeout (``float``, optional): An optional duration of time in seconds to allow for the RPC. When timeout is set to None, client waits until server response or error occur.