Skip to content

Commit 0adee89

Browse files
authored
fix:Pass parameters as keyword arguments to avoid incompatible issue of minio-py 7.2.19 (#3171)
#3103 Signed-off-by: yhmo <yihua.mo@zilliz.com>
1 parent 6f891fc commit 0adee89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymilvus/bulk_writer/remote_bulk_writer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def _object_exists(self, object_name: str) -> bool:
224224

225225
def _bucket_exists(self) -> bool:
226226
if isinstance(self._client, Minio):
227-
return self._client.bucket_exists(self._connect_param._bucket_name)
227+
return self._client.bucket_exists(bucket_name=self._connect_param._bucket_name)
228228
if isinstance(self._client, BlobServiceClient):
229229
containers = self._client.list_containers()
230230
for container in containers:
@@ -246,7 +246,7 @@ def _upload_object(self, file_path: str, object_name: str):
246246
elif isinstance(self._client, BlobServiceClient):
247247
logger.info(f"Target bucket: '{self._connect_param._container_name}'")
248248
container_client = self._client.get_container_client(
249-
self._connect_param._container_name
249+
container=self._connect_param._container_name
250250
)
251251
with Path(file_path).open("rb") as data:
252252
container_client.upload_blob(

0 commit comments

Comments
 (0)