Re: [Puppet Users] Re: hiera_hash lookup returns struct, how to pass to function written in puppet?

2016-08-14 Thread pokemon . master . metallic
Thanks Henrik. That was a flawed example. And as a matter of fact, since the error message outputted was so similar, I went back to my issue and noticed that it was indeed a typo! I'm sorry for all the trouble caused but I just assumed there was a bigger issue at hand. Any idea on when the

Re: [Puppet Users] Re: hiera_hash lookup returns struct, how to pass to function written in puppet?

2016-08-13 Thread Henrik Lindberg
On 11/08/16 17:36, pokemon.master.metal...@gmail.com wrote: I ended up coming up with a way to reproduce it without hieradata: init.pp | classfoo(Hash[String,Struct[{ x =>Array[Integer], y =>Array[String]}]]$arg ) { notify{"$arg":} } classtest { class { 'foo': arg =>{propertya

[Puppet Users] Re: hiera_hash lookup returns struct, how to pass to function written in puppet?

2016-08-11 Thread pokemon . master . metallic
I ended up coming up with a way to reproduce it without hieradata: init.pp class foo(Hash[String, Struct[{ x => Array[Integer], y => Array[String]}]] $arg ) { notify{"$arg":} } class test { class { 'foo': arg => {propertya => {propertya_1 => [1, 2], propertya_2 => ["foo"]}} }

[Puppet Users] Re: hiera_hash lookup returns struct, how to pass to function written in puppet?

2016-08-10 Thread pokemon . master . metallic
Thank you for the response Henrik. It's good to know I'm correct in my assumptions. I'll try to prepare a small example of tested code for you. What I'll do is simplify it to this. On puppet 4.3.2 try to load a hash in hiera, pass to a function expecting a hash but it will error about it