Change path portion of unique cluster name to point to compose file, not argv[0]. #678

Merged
telackey merged 2 commits from telackey/argv into main 2023-12-04 19:39:14 +00:00
Showing only changes of commit 397cb0bf68 - Show all commits

View File

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