Am 10.09.2010 um 14:50 schrieb Al @ Lab42:

> I want to use these values in a single line of a template:
> 
> host <% users_ldap_servers.each do |ldap| %> <%= ldap %> <% end %>
> 
> No matter how many spaces I place around, no matter the absence of
> trimming -%> I always get something like:
> 
> host  ldapm.example42.comldaps.example42.com
> instead of:
> host  ldapm.example42.com ldaps.example42.com
> 
> I think a solution could be to add a whitespace to "ldap" before
> yielding it... but I haven't found the needed "few chars combo" (I
> suppose).

Try <%= ldap + " " %>, or even force ldap to a string (ldap.to_s) if it 
complains about not being able to add " " to a not-String.

Felix

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to