Skip to content
This repository was archived by the owner on Mar 15, 2026. It is now read-only.

Commit 4c6ce61

Browse files
committed
changed create_function, update_function parameters to use defaults to fix deploy_s3 problem
1 parent 1a089de commit 4c6ce61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aws_lambda/aws_lambda.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def get_client(client, aws_access_key_id, aws_secret_access_key, region=None):
459459
)
460460

461461

462-
def create_function(cfg, path_to_zip_file, *use_s3, **s3_file):
462+
def create_function(cfg, path_to_zip_file, use_s3=False, s3_file=None):
463463
"""Register and upload a function to AWS Lambda."""
464464

465465
print('Creating your new Lambda function')
@@ -529,7 +529,7 @@ def create_function(cfg, path_to_zip_file, *use_s3, **s3_file):
529529
client.create_function(**kwargs)
530530

531531

532-
def update_function(cfg, path_to_zip_file, *use_s3, **s3_file):
532+
def update_function(cfg, path_to_zip_file, use_s3=False, s3_file=None):
533533
"""Updates the code of an existing Lambda function"""
534534

535535
print('Updating your Lambda function')

0 commit comments

Comments
 (0)