On Thu, 24 Apr 2014 13:11:55 +0200, Matthias Saou wrote:

> On Thu, 24 Apr 2014 10:18:16 +0000 (UTC)
> Frederik Himpe <[email protected]> wrote:
> 
>> The line in question in the template looks like this:
>> 
>> POSTFIX_STYLE_VIRTUAL_DOMAINS = [<% @virtualhost.join('", "').each do
>> |v| %>"<%= @v %>"<% end -%>]
>> 
> [...]
>> So why has this virtualhost array suddenly become a string
>> when I call the each function on it in the template?
> 
> Because unless I'm mistaken, you're converting your array to a string
> with ".join('", "')". Just remove that, and the ".each" should be
> correctly applied to the array.

Of course! Thanks, that does the trick.

-- 
Frederik Himpe

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/ljat2o%24hhv%241%40ger.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to