Stable between versions.
This commit is contained in:
parent
397cb0bf68
commit
d473b45f00
@ -271,7 +271,10 @@ def _make_cluster_context(ctx, stack, include, exclude, cluster, env_file):
|
|||||||
|
|
||||||
if cluster is None:
|
if cluster is None:
|
||||||
# Create default unique, stable cluster name from confile file path and stack name if provided
|
# Create default unique, stable cluster name from confile file path and stack name if provided
|
||||||
path = os.path.realpath(os.path.abspath(compose_dir))
|
if deployment:
|
||||||
|
path = os.path.realpath(os.path.abspath(compose_dir))
|
||||||
|
else:
|
||||||
|
path = "internal"
|
||||||
unique_cluster_descriptor = f"{path},{stack},{include},{exclude}"
|
unique_cluster_descriptor = f"{path},{stack},{include},{exclude}"
|
||||||
if ctx.debug:
|
if ctx.debug:
|
||||||
print(f"pre-hash descriptor: {unique_cluster_descriptor}")
|
print(f"pre-hash descriptor: {unique_cluster_descriptor}")
|
||||||
|
Loading…
Reference in New Issue
Block a user