Issue #8492 has been updated by James Turnbull.

Tracker changed from Bug to Feature


----------------------------------------
Feature #8492: Template function does not accept array variables
https://projects.puppetlabs.com/issues/8492

Author: James Turnbull
Status: Unreviewed
Priority: Normal
Assignee: Matt Robinson
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