This is because puppet lacks the join() function, the obvious (but absent) partner to the split() function.
However you can add it by using a custom function very easily, as we've done. Email me if you'd like a copy of the join.rb file to put in your puppet/parser/functions directory. The only caveat is to remember to type check arg[0] in case passed a string rather than an array. Steve Steve Shipway University of Auckland ITS UNIX Systems Design Lead s.ship...@auckland.ac.nz<mailto:s.ship...@auckland.ac.nz> Ph: +64 9 373 7599 ext 86487 ________________________________ From: puppet-users@googlegroups.com [puppet-users@googlegroups.com] on behalf of Antidot SAS [antidot...@gmail.com] Sent: Tuesday, 17 January 2012 4:23 a.m. To: puppet-users Subject: [Puppet Users] Display correctly any array Hi everyone, Is there a way to display correctly an array, each time I am trying to 'notice' an array I have something like that: Here is the code: $array = [ 'test' , 'test2'] notice("Here is the $array") The ouput is as follow: Here is the testtest2 There is no way to put a clean IFS for the ouput... -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@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. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@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.