From 4b5eb4b94c0a0658048ff83f86219aa6f4c37b68 Mon Sep 17 00:00:00 2001 From: Charlie Page Date: Fri, 26 Feb 2021 09:36:02 -0500 Subject: [PATCH] Return ETag and version for multipart uploads Required to have equivalent behavior to put_object --- s3transfer/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s3transfer/__init__.py b/s3transfer/__init__.py index ef42440e..6e2b46fc 100644 --- a/s3transfer/__init__.py +++ b/s3transfer/__init__.py @@ -391,7 +391,7 @@ def upload_file(self, filename, bucket, key, callback, extra_args): raise S3UploadFailedError( "Failed to upload %s to %s: %s" % ( filename, '/'.join([bucket, key]), e)) - self._client.complete_multipart_upload( + return self._client.complete_multipart_upload( Bucket=bucket, Key=key, UploadId=upload_id, MultipartUpload={'Parts': parts})