Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

dmurphy18
Copy link
Contributor

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 #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

@dmurphy18 dmurphy18 self-assigned this Jul 15, 2024
@dmurphy18 dmurphy18 merged commit d88e9c3 into saltstack:develop Jul 15, 2024
187 checks passed
@dmurphy18 dmurphy18 deleted the no_sort_lists_dicts branch July 15, 2024 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant