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 <[email protected]>:

> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAJgpziVq00Md3sSyD2vXb%2BFoCUQ0yDj98Ehag9WPM-kZ0-5ESQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to