saltstack / salt-bootstrap

Generic Salt Bootstrap Script
Other
928 stars 551 forks source link

Don't sort lists and dicts, as order of items matters #2006

Closed dmurphy18 closed 4 months ago

dmurphy18 commented 4 months ago

What does this PR do?

Don't sort lists and dicts, as order of items matters , esp. with gitfs

What issues does this PR fix or reference?

Duplicate of original PR https://github.com/saltstack/salt-bootstrap/pull/1969, being done here for speed on such a simple fix.

Previous Behavior

If sort_keys is not set to False, pyyaml reorders the data structure alphabetically. While this might me asthetically pleasing, it interferes (at least) with order of entries for gitfs.

New Behavior

Keeps data in original order