File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -717,7 +717,7 @@ def privileges(self):
717
717
class PrivilegeGroupInfo :
718
718
"""
719
719
PrivilegeGroupInfo groups:
720
- - PrivilegeGroupItem: <privilge_group :group>, <privileges:('Load', 'CreateCollection')>
720
+ - PrivilegeGroupItem: <privilege_group :group>, <privileges:('Load', 'CreateCollection')>
721
721
"""
722
722
723
723
def __init__ (self , results : List [milvus_types .PrivilegeGroupInfo ]) -> None :
Original file line number Diff line number Diff line change @@ -1478,7 +1478,7 @@ def list_privilege_groups(
1478
1478
raise ex from ex
1479
1479
ret = []
1480
1480
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 })
1482
1482
return ret
1483
1483
1484
1484
def add_privileges_to_group (
@@ -1493,7 +1493,7 @@ def add_privileges_to_group(
1493
1493
Args:
1494
1494
group_name (``str``): The name of the privilege group.
1495
1495
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.
1497
1497
timeout (``float``, optional): An optional duration of time in seconds to allow
1498
1498
for the RPC. When timeout is set to None, client waits until server response
1499
1499
or error occur.
You can’t perform that action at this time.
0 commit comments