MCPcopy Create free account
hub / github.com/ForgeRock/forgeops / write_yaml_file

Function write_yaml_file

lib/python/common.py:46–49  ·  view source on GitHub ↗

Write an object to a yaml file

(data, file)

Source from the content-addressed store, hash-verified

44 return True
45
46def write_yaml_file(data, file):
47 """Write an object to a yaml file"""
48 with open(file, 'w+', encoding='utf-8') as f:
49 yaml.dump(data, f, sort_keys=False, Dumper=NoAliasDumper)
50
51
52def log(msg, path, verbose=True, log_file='upgrade.log', end="\n"):

Callers 4

update_secrets_2025_2_0Function · 0.90
update_apps_2025_2_0Function · 0.90
update_secrets_2025_2_1Function · 0.90
update_secrets_2026_1_0Function · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected