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

config options in python.conf.erb #152

Closed
jameseck opened this issue Jun 27, 2014 · 6 comments
Closed

config options in python.conf.erb #152

jameseck opened this issue Jun 27, 2014 · 6 comments

Comments

@jameseck
Copy link
Contributor

Hi,

Just a quick bug to report.
In the python.conf.erb, the loop over the hash entries is not sorted, so the options are liable to switch order, causing subsequent puppet runs to rewrite the file.

<% @config.each do |key,value| -%>
<%= key -%> "<%= value -%>"
<% end -%>

I've fixed it on my own copy with the following:

<% @config.sort.each do |key,value| -%>
<%= key -%> "<%= value -%>"
<% end -%>

Apart from this small issue, the module is great btw :)

@cmurphy
Copy link
Contributor

cmurphy commented Jun 27, 2014

Thanks! Want to make a pull request with your change?

@jameseck
Copy link
Contributor Author

I would if I knew how :)
It's a pretty simple change though.

@blkperl
Copy link
Member

blkperl commented Jun 27, 2014

Github has excellent docs on how to create a pull request. Let us know if you get stuck.

https://help.github.com/articles/creating-a-pull-request

@jameseck
Copy link
Contributor Author

jameseck commented Jul 7, 2014

Hi
I've finally worked out how to submit a PR. I presume I've done it the right way (forked the repo and raised a PR from a branch on my fork).

@txaj
Copy link

txaj commented Jul 29, 2014

Since the patch has been included, can this issue be closed ? thanks

@blkperl
Copy link
Member

blkperl commented Jul 30, 2014

Yes thanks for pointing this out.

@blkperl blkperl closed this as completed Jul 30, 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

No branches or pull requests

4 participants