Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
Signed-off-by: shaoting-huang <shaoting.huang@zilliz.com>
  • Loading branch information
shaoting-huang committed Nov 20, 2024
1 parent dcde8cc commit 951c8a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions pymilvus/client/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -1470,11 +1470,13 @@ def operate_privilege_v2_request(
db_name: str,
collection_name: str,
):
check_pass_param(role_name=role_name)
check_pass_param(privilege=privilege)
check_pass_param(operate_privilege_type=operate_privilege_type)
check_pass_param(db_name=db_name)
check_pass_param(collection_name=collection_name)
check_pass_param(
role_name=role_name,
privilege=privilege,
operate_privilege_type=operate_privilege_type,
db_name=db_name,
collection_name=collection_name,
)
return milvus_types.OperatePrivilegeV2Request(
role=milvus_types.RoleEntity(name=role_name),
grantor=milvus_types.GrantorEntity(
Expand Down
2 changes: 1 addition & 1 deletion pymilvus/milvus_client/milvus_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,7 @@ def revoke_privilege_v2(
**kwargs,
):
conn = self._get_connection()
conn.revoke_privilege(
conn.revoke_privilege_v2(
role_name, privilege, db_name, collection_name, timeout=timeout, **kwargs
)

Expand Down

0 comments on commit 951c8a1

Please sign in to comment.