From 8eed5a70a5f160652a81126b5bce618ecfef150b Mon Sep 17 00:00:00 2001 From: David Boreham Date: Sun, 30 Jul 2023 22:28:40 -0600 Subject: [PATCH] Fix bugs introduced in previous commit (#470) --- app/deployment_create.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/deployment_create.py b/app/deployment_create.py index 47f96e34..7cbc85f6 100644 --- a/app/deployment_create.py +++ b/app/deployment_create.py @@ -110,7 +110,7 @@ def call_stack_deploy_create(deployment_context): # Link with the python file in the stack # Call a function in it # If no function found, return None - python_file_path = get_stack_file_path(deployment_context.stack).parent.joinpath("deploy", "commands.py") + python_file_path = get_stack_file_path(deployment_context.command_context.stack).parent.joinpath("deploy", "commands.py") spec = util.spec_from_file_location("commands", python_file_path) imported_stack = util.module_from_spec(spec) spec.loader.exec_module(imported_stack) @@ -186,7 +186,7 @@ def create(ctx, spec_file, deployment_dir): data_dir = Path(__file__).absolute().parent.joinpath("data") yaml = get_yaml() for pod in pods: - pod_file_path = os.path.join(_get_compose_file_dir(), f"docker-compose-{pod}.yml") + pod_file_path = os.path.join(get_compose_file_dir(), f"docker-compose-{pod}.yml") parsed_pod_file = yaml.load(open(pod_file_path, "r")) extra_config_dirs = _find_extra_config_dirs(parsed_pod_file, pod) if global_options(ctx).debug: