forked from cerc-io/stack-orchestrator
Fill in stack member when not passed through the cli (#475)
This commit is contained in:
parent
45ba1f337f
commit
a8f4e4cee4
@ -205,6 +205,10 @@ def create(ctx, spec_file, deployment_dir):
|
|||||||
if not os.path.exists(destination_config_dir):
|
if not os.path.exists(destination_config_dir):
|
||||||
copytree(source_config_dir, destination_config_dir)
|
copytree(source_config_dir, destination_config_dir)
|
||||||
# Delegate to the stack's Python code
|
# 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)
|
deployment_context = DeploymentContext(Path(deployment_dir), ctx.obj)
|
||||||
call_stack_deploy_create(deployment_context)
|
call_stack_deploy_create(deployment_context)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user