stages/cloud-init: disable default_flow_style when writing configs

This commit is contained in:
Achilleas Koutsou 2021-11-04 18:03:30 +01:00 committed by Christian Kellner
parent 9b5f13fc6d
commit 58708c29d2

View file

@ -152,7 +152,7 @@ def main(tree, options):
config_files_dir = f"{tree}/etc/cloud/cloud.cfg.d"
with open(f"{config_files_dir}/{filename}", "w") as f:
yaml.dump(config, f)
yaml.dump(config, f, default_flow_style=False)
return 0