Skip to content

Commit

Permalink
Merge pull request #493 from awslabs/bugfix-handle-lambda-layers-better
Browse files Browse the repository at this point in the history
bugfix-handle-lambda-layers-better
  • Loading branch information
bmorrissirromb authored Apr 15, 2024
2 parents 147a03e + 6e309b8 commit 9b9e990
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rdk/rdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -3513,7 +3513,7 @@ def __parse_deploy_args(self, ForceArgument=False):
if layer_count > 5:
print("You may only specify 5 Lambda Layers.")
sys.exit(1)
if self.args.rdklib_layer_arn or self.args.generated_lambda_layer and layer_count > 4:
if (self.args.rdklib_layer_arn or self.args.generated_lambda_layer) and layer_count > 4:
print("Because you have selected a 'lib' runtime You may only specify 4 additional Lambda Layers.")
sys.exit(1)

Expand Down

0 comments on commit 9b9e990

Please sign in to comment.