-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
file.serialize fails to serialize due to ordered dicts #20647
Comments
Here is an example of things being broken in salt 2014.7.0: https://bpaste.net/show/8b5d522ca1b3 For reference, this may be specific to the yaml formatter as the json formatter works as expected.. |
It looks like this had been worked around elsewhere previously here: https://github.com/saltstack/salt/blob/2014.7/salt/utils/jinja.py#L37-L43 I would assume this same solution could be used for the formatter. |
Hi @ryan-lane and @rfairburn. Please give #20779 a try and let me know how it goes. In my testing it resolves this issue. Thanks! |
@cachedout, I was able to successfully test this this today. Here is a paste of it working: |
@rfairburn Thanks for giving that a try and confirming the fix! Once @cachedout's PR gets merged in, I think we should be able to close this one. |
@cachedout @rallytime the bug is existed in 2014.7 branch.Is it a good idea to backport this fix to 2014.7 branch? |
@favadi, yes, we should backport it, thanks. |
It's possible file.serialize has been broken since everything has been switched to ordered dicts. It seems to pass data structures without transforming them and ordered dicts aren't serializable.
The text was updated successfully, but these errors were encountered: