Issue #8492 has been updated by Charlie Sharpsteen. Keywords set to customer
---------------------------------------- Feature #8492: Template function does not accept array variables https://projects.puppetlabs.com/issues/8492#change-88619 * Author: James Turnbull * Status: Needs Decision * Priority: Normal * Assignee: eric sorenson * Category: functions * Target version: * Affected Puppet version: 2.6.8 * Keywords: customer * 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
