From 58708c29d21dabe93f744932067c5a3f05139e3e Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Thu, 4 Nov 2021 18:03:30 +0100 Subject: [PATCH] stages/cloud-init: disable default_flow_style when writing configs --- stages/org.osbuild.cloud-init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stages/org.osbuild.cloud-init b/stages/org.osbuild.cloud-init index 6dd585c4..ca1aff4f 100755 --- a/stages/org.osbuild.cloud-init +++ b/stages/org.osbuild.cloud-init @@ -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