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

Do not monkey patch JSON function #23

Closed
traylenator opened this issue Sep 14, 2020 · 5 comments · Fixed by #48
Closed

Do not monkey patch JSON function #23

traylenator opened this issue Sep 14, 2020 · 5 comments · Fixed by #48

Comments

@traylenator
Copy link

Note this applies to the current function and the function using the autoconverted to APIv4 patches.

The monkey patch of JSON breaks all of puppet as per.

voxpupuli/puppet-consul#456

example fix.

@attachmentgenie
Copy link
Member

attachmentgenie commented Jan 1, 2021

lets see if we can make this a more general solution => voxpupuli/puppet-extlib#174

@ekohl
Copy link
Member

ekohl commented Jan 4, 2021

I do wonder why the regular .to_json is insufficient. Is the output unstable that it needs to be sorted?

@attachmentgenie
Copy link
Member

extlib wasnt the right place i opened => https://tickets.puppetlabs.com/browse/MODULES-10904 lets see how that progresses.

@ekohl will have to do some experiments to see how .to_json behaves.

In the mean time i am debating whether or not to move this function in the the newly create puppet-hashi_stack module in the mean time if .to_json doesnt give the results we are after

@ekohl
Copy link
Member

ekohl commented Jan 13, 2021

Sounds like a good plan.

@attachmentgenie
Copy link
Member

my initial tests make me think that switching to .to_json should be sufficient as the output is stable in 10 consecutive runs

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 a pull request may close this issue.

3 participants