fix
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Steve McMaster 2024-01-31 20:31:35 -05:00
parent f0ac76f924
commit 78c506e09c

View File

@ -160,7 +160,8 @@ def main(ctx):
for jinja_template in TEMPLATES:
for (coder_template, context) in TEMPLATES[jinja_template].items():
target_clusters = [{"name": DEFAULT_CLUSTER_NAME}]
for cluster_name in context.pop("clusters", []):
if "target_clusters" in context:
for cluster_name in context["target_clusters"]:
target_clusters.append({"name": cluster_name, "config_path": CLUSTERS[cluster_name]})
context["target_clusters"] = target_clusters