Skip to content

Commit fc3d6c1

Browse files
committed
fixup! Make mirror_file fail if file object already exists (#7134)
1 parent 136bacd commit fc3d6c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/azul/indexer/mirror_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def mirror_file(self, catalog: CatalogName, file: File):
221221
self._storage(catalog).put(object_key=self.mirror_object_key(file),
222222
data=file_content,
223223
content_type=file.content_type,
224-
exists_okay=False)
224+
overwrite=False)
225225
_, digest_type = file.digest()
226226
hasher = get_resumable_hasher(digest_type)
227227
hasher.update(file_content)
@@ -272,7 +272,7 @@ def finish_mirroring_file(self,
272272
upload = self._get_upload(catalog, file, upload_id)
273273
self._storage(catalog).complete_multipart_upload(upload,
274274
etags,
275-
exists_okay=False)
275+
overwrite=False)
276276
self._verify_digest(file, hasher)
277277
self._get_info(catalog, file)
278278
self._put_info(catalog, file)

0 commit comments

Comments
 (0)