Answer to myself: always double check for misspelling variable names...
Sorry for noise,
JB
On 3/12/12 12:26 PM, Jean Baptiste Favre wrote:> Hello,
> I want to pass a hash as parameters for a define
>
> $hash = { name => ''aname'', key1 =>
''akey'', key2 => ''anotherkey'' }
> mydefine { ''define'': hash => $hash }
>
>
> define mydefine ( $hash ) {
> notice("Hash is as follow: name is ${hash[name]}, key1 is
> ${hash[key1]}, key2 is ${hash[key2]}")
> }
>
> When running it , always got an error message:
> Error 400 on SERVER: hash is not an hash or array when accessing it
> with name.
>
> What I''m doing wrong ?
>
> Regards,
> JB
>
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.