Issue #4512 has been updated by Luke Kanies.

Status changed from Needs design decision to Accepted
Assigned to deleted (Luke Kanies)
Priority changed from Normal to Low

There's a chance that this could get fixed by Markus's Fixtures work, but 
AFAICT this will always be true.

Is this actually a problem?  I mean, I know you can find an example that's 
annoying, but this seems like it wouldn't normally actually hurt in reality.
----------------------------------------
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: Accepted
Priority: Low
Assigned to: 
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.

Reply via email to