mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Updated to not sort list or dicts, as in closed PR https://github.com/saltstack/salt-bootstrap/pull/1969
This commit is contained in:
parent
2068ae4024
commit
c6344035d6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue