On Thu, 24 Apr 2014 10:18:16 +0000 (UTC) Frederik Himpe <fhi...@vub.ac.be> 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. Matthias -- Matthias Saou ██ ██ ██ ██ Web: http://matthias.saou.eu/ ██████████████ Mail/XMPP: matth...@saou.eu ████ ██████ ████ ██████████████████████ GPG: 4096R/E755CC63 ██ ██████████████ ██ 8D91 7E2E F048 9C9C 46AF ██ ██ ██ ██ 21A9 7A51 7B82 E755 CC63 ████ ████ -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/20140424131155.7b1bbb5d%40r2d2.marmotte.net. For more options, visit https://groups.google.com/d/optout.