From a8f4e4cee4ee0e907b16df9b13ca252bef1773ea Mon Sep 17 00:00:00 2001 From: David Boreham Date: Mon, 31 Jul 2023 13:55:03 -0600 Subject: [PATCH] Fill in stack member when not passed through the cli (#475) --- app/deployment_create.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/deployment_create.py b/app/deployment_create.py index 7cbc85f6..bafb46cd 100644 --- a/app/deployment_create.py +++ b/app/deployment_create.py @@ -205,6 +205,10 @@ def create(ctx, spec_file, deployment_dir): if not os.path.exists(destination_config_dir): copytree(source_config_dir, destination_config_dir) # Delegate to the stack's Python code + # The deploy create command doesn't require a --stack argument so we need to insert the + # stack member here. + deployment_command_context = ctx.obj + deployment_command_context.stack = stack_name deployment_context = DeploymentContext(Path(deployment_dir), ctx.obj) call_stack_deploy_create(deployment_context)