Re: [Puppet Users] Re: stdlib keys() and values()

2017-09-28 Thread Robert
Hey John, I've just found out that notice() gives back the array indeed. Thanks for clarifying that, I didn't know this until now and was really confused :) Best, Rp On Thu, Sep 28, 2017 at 3:02 PM, jcbollinger wrote: > > > On Thursday, September 28, 2017 at 5:49:12 AM UTC-5, Robert wrote: >>

[Puppet Users] Re: stdlib keys() and values()

2017-09-28 Thread jcbollinger
On Thursday, September 28, 2017 at 5:49:12 AM UTC-5, Robert wrote: > > Eh, sorry. > > So why's this with the above code: > > Notice: /Stage[main]/Main/Notify[sdf]/message: defined 'message' as '1' > and keys($hash) gives 'a' > > Why not arrays of the keys / values? Can't understand. > Although i

[Puppet Users] Re: stdlib keys() and values()

2017-09-28 Thread Robert
Eh, sorry. So why's this with the above code: Notice: /Stage[main]/Main/Notify[sdf]/message: defined 'message' as '1' and keys($hash) gives 'a' Why not arrays of the keys / values? Can't understand. Thanks Rp On Thu, Sep 28, 2017 at 12:44 PM, Robert wrote: > Hello List, > > I can't think of

[Puppet Users] Re: stdlib keys()

2014-10-09 Thread jcbollinger
On Wednesday, October 8, 2014 2:15:09 PM UTC-5, Juan Andres Ramirez wrote: > > Thank you very much Felix for you replay. > I got it now , but I have an other question: > > I created file findarray.pp with this code inside: > define findarray( >$sitearray = $title, >$siteName > ){ > noti

[Puppet Users] Re: stdlib keys()

2014-10-08 Thread Juan Andres Ramirez
Thank you very much Felix for you replay. I got it now , but I have an other question: I created file findarray.pp with this code inside: define findarray( $sitearray = $title, $siteName ){ notify{"ARRAY DEL SITIO - ${sitearray}":} } and call findarray from init.pp, with next code: