From 6e309b87e74d4717a59f694aeda7ddd74cf8f4b9 Mon Sep 17 00:00:00 2001 From: Benjamin Morris <93620006+bmorrissirromb@users.noreply.github.com> Date: Mon, 15 Apr 2024 08:50:54 -0700 Subject: [PATCH] bugfix-handle-lambda-layers-better --- rdk/rdk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdk/rdk.py b/rdk/rdk.py index e93badd..cdcb669 100644 --- a/rdk/rdk.py +++ b/rdk/rdk.py @@ -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)