Skip to content

Instantly share code, notes, and snippets.

@codec
Created May 27, 2012 04:22
Show Gist options
  • Save codec/2802170 to your computer and use it in GitHub Desktop.
Save codec/2802170 to your computer and use it in GitHub Desktop.
Don't use "type" as variable in templates
class blah($type='woot') {
notify { "blah":
message => inline_template('<%= type %>')
}
}
class { 'blah': type => 'fnuh' }
$ puppet apply foo.pp
(erb):1: warning: Object#type is deprecated; use Object#class
notice: Puppet::Parser::TemplateWrapper
notice: /Stage[main]/Blah/Notify[blah]/message: defined 'message' as 'Puppet::Parser::TemplateWrapper'
notice: Finished catalog run in 0.05 seconds
@codec
Copy link
Author

codec commented May 27, 2012

Only affects puppet on ruby1.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment