Issue #7635 has been updated by Nigel Kersten.

Assignee changed from Nigel Kersten to eric sorenson


----------------------------------------
Feature #7635: Extend template() function to give alternatives rather than 
concatenate
https://projects.puppetlabs.com/issues/7635#change-67403

Author: Steve Shipway
Status: Needs Decision
Priority: Normal
Assignee: eric sorenson
Category: 
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


Extend the template() function, so that it can be passed an array of templates 
and the first file to exist is used (rather than the current behaviour where 
each member of the list is concatenated).  This will make it act like the 
source=> attribute in this case.

EG:

content => template ( [ 'a.erb', 'b.erb' ], 'c.erb' )

would result in a concatenation of a.erb and c.erb if a.erb exists, or a 
concatenation of b.erb and c.erb if a.erb does not exist and b.erb does.

This would be backwards compatible with the current syntax but would also add 
functional compatibility with the behaviour of the source attribute (since 
source=>[a,b] takes the first match rather than a concatenation)



-- 
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