From c6344035d68de070a41de7b98c67a3bff663780e Mon Sep 17 00:00:00 2001 From: David Murphy Date: Mon, 15 Jul 2024 15:08:05 -0600 Subject: [PATCH] Updated to not sort list or dicts, as in closed PR https://github.com/saltstack/salt-bootstrap/pull/1969 --- bootstrap-salt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index ec07b9c..51983a0 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -2369,7 +2369,7 @@ __overwriteconfig() { fi # Convert json string to a yaml string and write it to config file. Output is dumped into tempfile. - "$good_python" -c "import json; import yaml; jsn=json.loads('$json'); yml=yaml.safe_dump(jsn, line_break='\\n', default_flow_style=False); config_file=open('$target', 'w'); config_file.write(yml); config_file.close();" 2>"$tempfile" + "$good_python" -c "import json; import yaml; jsn=json.loads('$json'); yml=yaml.safe_dump(jsn, line_break='\\n', default_flow_style=False, sort_keys=False); config_file=open('$target', 'w'); config_file.write(yml); config_file.close();" 2>"$tempfile" # No python errors output to the tempfile if [ ! -s "$tempfile" ]; then