Skip to content

Commit

Permalink
- Keys should be correct now.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaellh0079 committed Dec 1, 2023
1 parent 6593c8c commit d0b6d0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src_py/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ def scan_ed_pub(s3_client):


def handle_s3_event_message(event, s3_client):
object_key = event.get('Records')[0].get('s3').get('object').get('key').split('/', 2)[-1]
object_key = event.get('Records')[0].get('s3').get('object')
s3_client.copy_object(
Bucket=destination_bucket,
CopySource={
'Bucket': source_bucket,
'Key': object_key
},
Key=object_key
Key=object_key.get('key').split('/', 2)[-1]
)


Expand Down

0 comments on commit d0b6d0c

Please sign in to comment.