Fill in stack member when not passed through the cli (#475)
Publish / Build and publish (push) Successful in 44s Details
Deploy Test / Run deploy test suite (push) Successful in 2m14s Details
Smoke Test / Run basic test suite (push) Successful in 2m33s Details

pull/479/head v1.1.0-a8f4e4c-202307311955
David Boreham 2023-07-31 13:55:03 -06:00 committed by GitHub
parent 45ba1f337f
commit a8f4e4cee4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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)