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

Correctly declare variables with @ #9

Closed
wants to merge 2 commits into from
Closed

Conversation

@brasey
Copy link

@brasey brasey commented Apr 14, 2015

Puppet complains about deprecated bare variables in log.conf.erb. This just adds the '@' to the variables.

@brasey
Copy link
Author

@brasey brasey commented Apr 14, 2015

Example output:

Warning: Variable access via 'logname' is deprecated. Use '@logname' instead. template[/etc/puppet/modules/loggly/templates/log.conf.erb]:5
   (at /etc/puppet/modules/loggly/templates/log.conf.erb:5:in `block in result')
Warning: Variable access via 'filepath' is deprecated. Use '@filepath' instead. template[/etc/puppet/modules/loggly/templates/log.conf.erb]:6
   (at /etc/puppet/modules/loggly/templates/log.conf.erb:6:in `block in result')
Warning: Variable access via 'logname' is deprecated. Use '@logname' instead. template[/etc/puppet/modules/loggly/templates/log.conf.erb]:7
   (at /etc/puppet/modules/loggly/templates/log.conf.erb:7:in `block in result')
Warning: Variable access via 'logname' is deprecated. Use '@logname' instead. template[/etc/puppet/modules/loggly/templates/log.conf.erb]:8
   (at /etc/puppet/modules/loggly/templates/log.conf.erb:8:in `block in result')
Warning: Variable access via 'severity' is deprecated. Use '@severity' instead. template[/etc/puppet/modules/loggly/templates/log.conf.erb]:9
   (at /etc/puppet/modules/loggly/templates/log.conf.erb:9:in `block in result')
@mostlyjason
Copy link
Contributor

@mostlyjason mostlyjason commented Apr 22, 2015

@psquickitjayant can you review this one when you get a chance?

@adamcrews
Copy link
Contributor

@adamcrews adamcrews commented Apr 23, 2015

This PR is made obsolete by #10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.