Skip to content

Commit

Permalink
fix s3 upload
Browse files Browse the repository at this point in the history
  • Loading branch information
aeg committed Sep 26, 2018
1 parent b1fde35 commit 745a2f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/pipeline/OutputPathS3Mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __call__(self, uripath, localpath):
def upload_single_file(self, bucket_name, key, tempath):
client = boto3.resource('s3')
local_path = tempath
self.logger.info("Uploading to bucket {}, {} to file {}".format(bucket_name, key, local_path))
self.logger.info("Uploading to bucket {}, {} from file {}".format(bucket_name, key, local_path))
with open(tempath, "rb") as data:
client.Bucket(bucket_name).put_object(key, data)
client.Object(bucket_name, key).put(Body=data)

0 comments on commit 745a2f0

Please sign in to comment.