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

Now sorting hashes so they don't jumble on every puppet run + properly printing arrays #3

Merged
merged 1 commit into from
Mar 10, 2016

Conversation

AshtonDavis
Copy link

EL6 is still on Ruby 1.8 by default, which doesn't order hashes. It's still a valid backwards compatibility to keep in mind. Without sorting the hashes, every time puppet runs it remakes the file and restarts the process.

Also, for some reason it didn't print out arrays in ['array'] format, but rather as a string. Doing .is_a?(Array) and using value.inspect will force the [''] format.

@AshtonDavis
Copy link
Author

The build test is failing on something to do with OpenStack API keys, I'm not sure why. I don't think it relates to my commit.

@yankcrime
Copy link
Member

Hi @ntent-ashton - thanks for spotting that issue and offering up a fix. I've tested this with Debian 8.2, CentOS 7 and Ubuntu 14.04 and it looks good to me. If you could fixup your history down to a single commit I'll be happy to merge this in.

Don't worry about the failing Travis CI check, it's currently using a personal account to spin up instances on our cloud platform - I'll get around to fixing that later today.

@AshtonDavis
Copy link
Author

And I've tested it on CentOS 6.
I've squashed the commits, you should be good to pull in now. I'm going to submit another PR in a minute for a different issue.

@yankcrime
Copy link
Member

Awesome, thanks! 👍

yankcrime added a commit that referenced this pull request Mar 10, 2016
Now sorting hashes so they don't jumble on every puppet run + properly printing arrays
@yankcrime yankcrime merged commit 02c023f into voxpupuli:master Mar 10, 2016
stuartbfox referenced this pull request in stuartbfox/puppet-telegraf Mar 31, 2016
Now sorting hashes so they don't jumble on every puppet run + properly printing arrays
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.

2 participants