Skip to content

Commit 7f39c21

Browse files
Merge pull request #87 from baloise/fix/yaml-anchors
fix(sync-apps): prevent YAML anchors in application objects
2 parents 09552f0 + 8605e94 commit 7f39c21

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gitopscli/commands/sync_apps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def __sync_apps(apps_git, root_git):
8383
__check_if_app_already_exists(repo_apps, apps_from_other_repos)
8484

8585
logging.info("Sync applications in root repository's %s.", apps_config_file_name)
86-
merge_yaml_element(apps_config_file, "applications", dict.fromkeys(repo_apps, {}), True)
86+
merge_yaml_element(apps_config_file, "applications", {repo_app: {} for repo_app in repo_apps}, True)
8787
__commit_and_push(apps_git, root_git, apps_config_file_name)
8888

8989

0 commit comments

Comments
 (0)