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

Updated comment symbol on inetrc.erb #709

Merged
merged 1 commit into from
Aug 16, 2018
Merged

Updated comment symbol on inetrc.erb #709

merged 1 commit into from
Aug 16, 2018

Conversation

covidium
Copy link
Contributor

Linting validation fails on this file.

@wyardley
Copy link
Contributor

wyardley commented Aug 10, 2018

Can you comment on the reason for this a bit more? And which linting is failing?

Seems like '%% ' should be the correct comment format, no?
http://erlang.org/doc/apps/erts/inet_cfg.html

If this is a recent change, is it backwards compatible?

Edit: as far as acceptance test failures, those are apparently due to https://tickets.puppetlabs.com/browse/BKR-1512 per @bastelfreak

@wyardley wyardley added the needs-feedback Further information is requested label Aug 10, 2018
@bastelfreak
Copy link
Member

Hi @covidium, thanks for the PR. Are you interested in turning this into an epp template? https://puppet.com/docs/puppet/5.5/lang_template_epp.html
This is the new templating language from Puppet that is more solid than erb. Please rebase after #710 got merged, that will fix the broken beaker tests.

@wyardley
Copy link
Contributor

@bastelfreak regardless of the template time, I'm still not sure this is a good change to make?

@bastelfreak
Copy link
Member

@wyardley I've no knowledge about the format, I can't say anything about it. But we should be able to check if it works with an acceptance test?

@covidium
Copy link
Contributor Author

@wyardley you're totally right the comments should use double percent symbols to mark the comments and not a single one. My validation test failed on this erb template as the 2nd line has also embedded ruby code in the comment.

The command is /bin/erb -x -T '-' $file | ruby -c || exit 1;

ERB TEMPLATE - modules/rabbitmq/templates/inetrc.erb
-:3: syntax error, unexpected '<'
Template Path: <%= @module_name %>/templates/inetrc
^
-:3: unterminated string meets end of file

Once I've doubled the symbol, validation of the erb file was OK.

ERB TEMPLATE - modules/rabbitmq/templates/inetrc.erb
Syntax OK

@bastelfreak I would like to help with the epp template, but at this moment I've zero experience with it

@wyardley wyardley removed needs-feedback Further information is requested needs-rebase labels Aug 13, 2018
@wyardley
Copy link
Contributor

@covidium Looks good to me, thanks for the contribution.

I checked out the PR and double-checked that things look good and that the module path is still rendered correctly.

Since the commits are signed, I don't want to squash-merge -- would you mind squashing down to a single commit / force-pushing in your feature branch?

Changing comment symbol to double percent
@covidium
Copy link
Contributor Author

@wyardley done

@wyardley wyardley merged commit 98e243c into voxpupuli:master Aug 16, 2018
@wyardley
Copy link
Contributor

@covidium Merged, and thanks for the contribution!

cegeka-jenkins pushed a commit to cegeka/puppet-rabbitmq that referenced this pull request Mar 26, 2021
Updated comment symbol on inetrc.erb
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.

3 participants