Skip to content

Commit 8352d02

Browse files
committed
making reference to bucket_name consistent
1 parent 5d9a6af commit 8352d02

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

aws_lambda/aws_lambda.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,15 +475,14 @@ def upload_s3(cfg, path_to_zip_file):
475475
os.environ.get('LAMBDA_FUNCTION_NAME') or cfg.get('function_name')
476476
)
477477
kwargs = {
478-
'Bucket': cfg.get('bucket_name'),
478+
'Bucket': '{}'.format(buck_name),
479479
'Key': cfg.get('s3_key', '{}.zip'.format(func_name)),
480480
'Body': byte_stream
481481
}
482482

483483
client.put_object(**kwargs)
484484
print('Finished uploading {} to S3 bucket {}'.format(func_name, buck_name))
485485

486-
487486
def function_exists(cfg, function_name):
488487
"""Check whether a function exists or not"""
489488

0 commit comments

Comments
 (0)