Skip to content

Commit

Permalink
Merge pull request #2006 from dmurphy18/no_sort_lists_dicts
Browse files Browse the repository at this point in the history
Don't sort lists and dicts, as order of items matters
  • Loading branch information
dmurphy18 authored Jul 15, 2024
2 parents 2068ae4 + c634403 commit d88e9c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bootstrap-salt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d88e9c3

Please sign in to comment.