Closed dmurphy18 closed 4 months ago
Don't sort lists and dicts, as order of items matters , esp. with gitfs
Duplicate of original PR https://github.com/saltstack/salt-bootstrap/pull/1969, being done here for speed on such a simple fix.
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.
Keeps data in original order
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