Skip to content

Commit

Permalink
fix: fix privilege typo (milvus-io#2510)
Browse files Browse the repository at this point in the history
related: milvus-io/milvus#37031

Signed-off-by: shaoting-huang <[email protected]>
  • Loading branch information
shaoting-huang committed Dec 24, 2024
1 parent 0ccd878 commit 0f0438f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pymilvus/client/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ def privileges(self):
class PrivilegeGroupInfo:
"""
PrivilegeGroupInfo groups:
- PrivilegeGroupItem: <privilge_group:group>, <privileges:('Load', 'CreateCollection')>
- PrivilegeGroupItem: <privilege_group:group>, <privileges:('Load', 'CreateCollection')>
"""

def __init__(self, results: List[milvus_types.PrivilegeGroupInfo]) -> None:
Expand Down
4 changes: 2 additions & 2 deletions pymilvus/milvus_client/milvus_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1469,7 +1469,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(
Expand All @@ -1484,7 +1484,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.
Expand Down

0 comments on commit 0f0438f

Please sign in to comment.