Skip to content

Commit 5d0c5ee

Browse files
authored
fix: Read feature flags from params (#330)
* Read feature flags from params * Update functional tests
1 parent eaf35db commit 5d0c5ee

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

aws_lambda_builders/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ def main(): # pylint: disable=too-many-statements
129129
dependencies_dir=params.get("dependencies_dir", None),
130130
combine_dependencies=params.get("combine_dependencies", True),
131131
architecture=params.get("architecture", X86_64),
132+
is_building_layer=params.get("is_building_layer", False),
133+
experimental_flags=params.get("experimental_flags", []),
132134
)
133135

134136
# Return a success response

tests/functional/test_cli.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ def test_run_hello_workflow_with_backcompat(self, flavor, protocol_version):
8181
"dependencies_dir": "/ignored-dep",
8282
"combine_dependencies": False,
8383
"architecture": "x86_64",
84+
"is_building_layer": False,
85+
"experimental_flags": ["experimental"],
8486
},
8587
}
8688

@@ -145,6 +147,8 @@ def test_run_hello_workflow_incompatible(self, flavor):
145147
"download_dependencies": False,
146148
"dependencies_dir": "/ignored-dep",
147149
"combine_dependencies": False,
150+
"is_building_layer": False,
151+
"experimental_flags": ["experimental"],
148152
},
149153
}
150154
)

0 commit comments

Comments
 (0)