Issue #4512 has been updated by James Turnbull. Category set to functions Status changed from Unreviewed to Needs design decision Assigned to set to Luke Kanies
---------------------------------------- Bug #4512: puppet calls template function for a file even when content is overriden to undef http://projects.puppetlabs.com/issues/4512 Author: Dan Bode Status: Needs design decision Priority: Normal Assigned to: Luke Kanies Category: functions Target version: Affected version: 0.25.5 Keywords: Branch: I swear I opened a ticket on this ages ago: when using file content/template and inheritance: <pre> class a { file { '/tmp/foo': content => template('/tmp/foo.erb'), } } class b inherits a { File['/tmp/foo'] { content => undef, } } include b </pre> /tmp/foo.erb <pre> <%= foo_data %> </pre> <pre> Failed to parse template /tmp/foo.erb: Could not find value for 'foo_data' at /etc/puppet/manifests/blah.pp:3 on node mypuppetmaster.localdomain </pre> puppet compiles the template in this case even though is doesnt have to. We should not have to set $foo_data when we include b. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
