Issue #8492 has been reported by James Turnbull.
----------------------------------------
Bug #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 = ["a","b","c"]
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
netops-collectd-01.int.ec2.zynga.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.