updated main workflow

This commit is contained in:
armen-hakobian
2024-10-04 13:51:48 +04:00
parent 2c3d642028
commit 888b5c0de1

View File

@@ -20,7 +20,8 @@ def main():
with open(args.yaml_path, 'r') as file:
yaml_content = file.read()
loaded_yaml_content = yaml.safe_load(yaml_content)
loaded_yaml_content = yaml.safe_load(yaml_content) or dict()
# Desired clusters must be applied
desired_clusters = Counter([str(cluster) for cluster in loaded_yaml_content.keys()])
# Existing clusters filtered from "terraform workspace list" and remove prefixes