use bucket name from payload instead of env var

This commit is contained in:
Josh Burman
2021-11-03 17:58:48 +00:00
parent 1c7fb41ca5
commit a42ae76e72
3 changed files with 5 additions and 2 deletions

View File

@ -18,7 +18,7 @@ class LoftService(Base):
logging.info('Retrieving attributes from message...')
# get s3 object
self.key = aws_helper.get_key_from_message(self.source)
s3_object = aws_helper.get_object(self.key, os.environ['INGEST_BUCKET'])
s3_object = aws_helper.get_object(self.key, aws_helper.get_bucket_from_message(self.source))
# convert to tar
self.tar = tar_helper.raw_to_tar(s3_object)