From 1d6f52f7af490a4941247d7acd4f9ad850042a0b Mon Sep 17 00:00:00 2001 From: roleyfoley Date: Wed, 10 Feb 2021 23:44:46 +0000 Subject: [PATCH] fix: manifest file formatting --- s3-inventory-copy/src/lambda.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s3-inventory-copy/src/lambda.py b/s3-inventory-copy/src/lambda.py index 12a9427..a3dd28b 100644 --- a/s3-inventory-copy/src/lambda.py +++ b/s3-inventory-copy/src/lambda.py @@ -25,7 +25,7 @@ def s3event_lambda_handler(event, context): # Only trigger a new batch operation when we have a new checksum if key.endswith('manifest.checksum') and event == 'ObjectCreated:Put': - manifest_key = os.path.splitext(key) + '.json' + manifest_key = os.path.splitext(key)[0] + '.json' manifest_arn = bucket_arn + os.path.abspath(manifest_key) manifest_details = s3Client.head_object( Bucket=bucket,