Got a reply on IRC chan and I actually was wrongly thinking that the
default param value would have precendence over databinding.
Sorry for the noise...

Bruno

2014-09-11 16:58 GMT+02:00 Bruno Léon <nonolem...@gmail.com>:

> Double checked by temporarily removing
> /usr/lib/ruby/vendor_ruby/puppet/parser/functions/hiera_array.rb from
> puppet master
>
> If called in the body this raises an error as expected.
> If called as a default class parameter => no error so the function is not
> called
>
> 2014-09-11 16:26 GMT+02:00 Bruno Léon <nonolem...@gmail.com>:
>
>> Hi there,
>>
>> it took me while to figure this out but it seems that when you do set the
>> default value of a class parameter to the value hiera_array('myparameter'),
>> hiera does not do an array merge but a standard "most specific value found".
>>
>> This is on Puppet 3.7.
>>
>> I created a module to show this:https://github.com/brunoleon/puppet-foo
>>
>> I would expect to have the same behavior whether I call hiera_array()
>> within class body or a default parameter value.
>>
>> Can anybody confirm this is a bug ?
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAJgpziV571igyEUCo_%2BYjgrXF2eZSnm_1fbCn_2aeZUsGav%3DBw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to