Issue #8492 has been updated by Daniel Pittman.

Status changed from Accepted to Needs Decision
Assignee changed from Matt Robinson to Nigel Kersten

Nigel Kersten wrote:
> template currently takes a comma separated list instead of an array.
> Rather than digging our hole any deeper here with the differences between 
> file/content/source, we need to be making these things consistent as per #5158

Nigel, we would like to consider this, but it isn't clear from either this 
ticket, or #5158, what the expected unification is.  Can we get that clarified 
in both tickets, so that we can consider scheduling this?  Otherwise it will 
just remain stuck here. :(
----------------------------------------
Feature #8492: Template function does not accept array variables
https://projects.puppetlabs.com/issues/8492

Author: James Turnbull
Status: Needs Decision
Priority: Normal
Assignee: Nigel Kersten
Category: functions
Target version: 
Affected Puppet version: 2.6.8
Keywords: 
Branch: 


<pre>
class foo {
 $b = ["/path/to/erbfile1","/path/to/erbfile2","/path/to/erbfile3"]
 file { "/foo.txt":
   owner => 'root',
   group => 'root',
   mode => 644,
   content => template($b), 
 }
</pre>

Results in:

<pre>
# puppet apply -d -v foo.pp
debug: Scope(Class[Foo]): Retrieving template abc
can't convert Array into String at /root/test/foo.pp:8 on node 
hostname.example.com
</pre>




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