Skip to content

Commit 292390d

Browse files
fix: [2.5] fix privilege typo (#2512)
cherry-pick from master: #2510 related: milvus-io/milvus#37031 Signed-off-by: shaoting-huang <[email protected]>
1 parent 6c326cf commit 292390d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pymilvus/client/types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ def privileges(self):
717717
class PrivilegeGroupInfo:
718718
"""
719719
PrivilegeGroupInfo groups:
720-
- PrivilegeGroupItem: <privilge_group:group>, <privileges:('Load', 'CreateCollection')>
720+
- PrivilegeGroupItem: <privilege_group:group>, <privileges:('Load', 'CreateCollection')>
721721
"""
722722

723723
def __init__(self, results: List[milvus_types.PrivilegeGroupInfo]) -> None:

pymilvus/milvus_client/milvus_client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1478,7 +1478,7 @@ def list_privilege_groups(
14781478
raise ex from ex
14791479
ret = []
14801480
for g in res.groups:
1481-
ret.append({"privilge_group": g.privilege_group, "privileges": g.privileges})
1481+
ret.append({"privilege_group": g.privilege_group, "privileges": g.privileges})
14821482
return ret
14831483

14841484
def add_privileges_to_group(
@@ -1493,7 +1493,7 @@ def add_privileges_to_group(
14931493
Args:
14941494
group_name (``str``): The name of the privilege group.
14951495
privileges (``List[str]``): A list of privileges to be added to the group.
1496-
Privilges should be the same type in a group otherwise it will raise an exception.
1496+
Privileges should be the same type in a group otherwise it will raise an exception.
14971497
timeout (``float``, optional): An optional duration of time in seconds to allow
14981498
for the RPC. When timeout is set to None, client waits until server response
14991499
or error occur.

0 commit comments

Comments
 (0)