Skip to content

Commit 39c9138

Browse files
committed
Fix invocations of build().
1 parent 5bce35b commit 39c9138

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

aws_lambda/aws_lambda.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ def deploy(src, config_file='config.yaml', requirements=False, local_package=Non
9696
# folder then add the handler file in the root of this directory.
9797
# Zip the contents of this folder into a single file and output to the dist
9898
# directory.
99-
path_to_zip_file = build(src, requirements, local_package)
99+
path_to_zip_file = build(
100+
src, config_file=config_file, requirements=requirements, local_package=local_package)
100101

101102
if function_exists(cfg, cfg.get('function_name')):
102103
update_function(cfg, path_to_zip_file)
@@ -122,7 +123,8 @@ def deploy_s3(src, config_file='config.yaml', requirements=False, local_package=
122123
# folder then add the handler file in the root of this directory.
123124
# Zip the contents of this folder into a single file and output to the dist
124125
# directory.
125-
path_to_zip_file = build(src, requirements, local_package)
126+
path_to_zip_file = build(
127+
src, config_file=config_file, requirements=requirements, local_package=local_package)
126128

127129
use_s3 = True
128130
s3_file = upload_s3(cfg, path_to_zip_file, use_s3)
@@ -150,7 +152,8 @@ def upload(src, config_file='config.yaml', requirements=False, local_package=Non
150152
# folder then add the handler file in the root of this directory.
151153
# Zip the contents of this folder into a single file and output to the dist
152154
# directory.
153-
path_to_zip_file = build(src, requirements, local_package)
155+
path_to_zip_file = build(
156+
src, config_file=config_file, requirements=requirements, local_package=local_package)
154157

155158
upload_s3(cfg, path_to_zip_file)
156159

scripts/lambda

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ def init(folder, minimal):
4444
help='Install local package as well.', multiple=True,
4545
)
4646
def build(use_requirements, local_package):
47-
aws_lambda.build(CURRENT_DIR, config_file=config_file, use_requirements, local_package)
47+
aws_lambda.build(
48+
CURRENT_DIR, config_file=config_file, use_requirements=use_requirements,
49+
local_package=local_package)
4850

4951

5052
@click.command(help='Run a local test of your function.')

0 commit comments

Comments
 (0)