-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
Ensure stable key order when processing hashes #799
Conversation
The tests should work before we merge this. The change itself looks good and makes sense |
First, please let us known what puppet version and which version of ruby you're using? The behavior you describe sounds like ruby 1.8.7. |
Even though it might just be possible to create a stable insertion order in other places, this should really not be necessary. We want to generate stable icinga config files without having to jump though any extra hoops.
d3fccbc
to
95ec7ca
Compare
I'm using
on Debian Bookworm provided by puppetlabs. The problem arises if the order of the keys in the hash is not stable. This affects us because the hashes originate from puppetdb queries. |
What kind of queries? By the module itself? |
The order is not so easy to change, there are users for whom this is important. |
I didn't thought about that. The puppetdb queries are made by our code. It is certainly possible to determine the order on our site in advance. |
"The puppetdb queries are made by our code. It is certainly possible to determine the order on our site in advance." |
We'll do that. It's fine by me, if you reject this PR. |
We encountered a problem with changing config files because the data was dynamically generated.
Even though it might just be possible to create a stable insertion order in other places, this should really not be necessary. We want to generate stable icinga config files without having to jump though any extra hoops.