Skip to content

Commit 37f6132

Browse files
committed
Fix pod_path to pod_name
1 parent ccc4d5f commit 37f6132

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/stack/deploy/deploy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def _make_cluster_context(ctx, stack, include, exclude, cluster, env_file):
253253
if include_exclude_check(pod_name, include, exclude):
254254
if pod_repository is None or pod_repository == "internal":
255255
if deployment:
256-
compose_file_name = os.path.join(compose_dir, f"{compose_file_prefix}-{pod_path}.yml")
256+
compose_file_name = os.path.join(compose_dir, f"{compose_file_prefix}-{pod_name}.yml")
257257
else:
258258
compose_file_name = resolve_compose_file(stack, pod_name)
259259
else:
@@ -268,7 +268,7 @@ def _make_cluster_context(ctx, stack, include, exclude, cluster, env_file):
268268
post_start_commands.append(os.path.join(script_dir, pod_post_start_command))
269269
else:
270270
# TODO: fix this code for external stack with scripts
271-
pod_root_dir = os.path.join(dev_root_path, pod_repository.split("/")[-1], pod["path"])
271+
pod_root_dir = os.path.join(dev_root_path, pod_repository.split("/")[-1], pod_path)
272272
compose_file_name = os.path.join(pod_root_dir, f"{compose_file_prefix}-{pod_name}.yml")
273273
pod_pre_start_command = pod.get("pre_start_command")
274274
pod_post_start_command = pod.get("post_start_command")

src/stack/util.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ def get_pod_list(parsed_stack):
6565
# and if not found there, internally
6666
def resolve_config_dir(stack, config_dir_name: str):
6767
if stack_is_external(stack):
68-
print(stack.file_path.parent, config_dir_name)
6968
if stack.repo_path:
7069
config_base = stack.repo_path.joinpath("config")
7170
else:

0 commit comments

Comments
 (0)