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

Sort @passenger_cgi_param to make sure generated config file content is stable. #243

Merged
merged 1 commit into from
Jan 24, 2014

Conversation

huandu
Copy link
Contributor

@huandu huandu commented Jan 24, 2014

I see a strange issue when I use @passenger_cgi_param in nginx::resource::vhost. The passenger_set_cgi_param part in generated nginx site config is keeping changing. It makes nginx service restarted after every puppet agent run.

It seems each on hash map is not stable. My solution is to get hash keys and sort them to make sure it's stable.

@jfryman
Copy link
Contributor

jfryman commented Jan 24, 2014

Super! Yeah, unordered hashes kinda stink. Thanks for this.

jfryman pushed a commit that referenced this pull request Jan 24, 2014
Sort @passenger_cgi_param to make sure generated config file content is stable.
@jfryman jfryman merged commit 9b357bc into voxpupuli:master Jan 24, 2014
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