Skip to content

Commit d88e9c3

Browse files
authored
Merge pull request #2006 from dmurphy18/no_sort_lists_dicts
Don't sort lists and dicts, as order of items matters
2 parents 2068ae4 + c634403 commit d88e9c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bootstrap-salt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2369,7 +2369,7 @@ __overwriteconfig() {
23692369
fi
23702370

23712371
# Convert json string to a yaml string and write it to config file. Output is dumped into tempfile.
2372-
"$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"
2372+
"$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"
23732373

23742374
# No python errors output to the tempfile
23752375
if [ ! -s "$tempfile" ]; then

0 commit comments

Comments
 (0)