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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.