From 397cb0bf684da89986851286cb6cb9aee0b74530 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Mon, 4 Dec 2023 12:37:13 -0600 Subject: [PATCH] Change path portiono of unique cluster name to point to compose file, not argv[0]. --- stack_orchestrator/deploy/deploy.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stack_orchestrator/deploy/deploy.py b/stack_orchestrator/deploy/deploy.py index df231e74..2d57f6cb 100644 --- a/stack_orchestrator/deploy/deploy.py +++ b/stack_orchestrator/deploy/deploy.py @@ -271,8 +271,7 @@ def _make_cluster_context(ctx, stack, include, exclude, cluster, env_file): if cluster is None: # Create default unique, stable cluster name from confile file path and stack name if provided - # TODO: change this to the config file path - path = os.path.realpath(sys.argv[0]) + path = os.path.realpath(os.path.abspath(compose_dir)) unique_cluster_descriptor = f"{path},{stack},{include},{exclude}" if ctx.debug: print(f"pre-hash descriptor: {unique_cluster_descriptor}")