Issue #17691 has been updated by eric sorenson.

Description updated


----------------------------------------
Bug #17691: hiera lookups a overwritten
https://projects.puppetlabs.com/issues/17691#change-82542

Author: Oliver Schad
Status: Unreviewed
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 3.0.1
Keywords: hiera hiera_array params.pp
Branch: 


We do the handling of parameters of classes in a seperate params.pp and 
inherits in a class:

<pre>
------------
params.pp
------------

class myclass::params {
  myvar = hiera_array('myclass::mycar')
}

-----------
init.pp
-----------

class myclass ( $myvar = $myclass::params::myvar ) {
}
</pre>
In this situation happens the following:

1) hiera_array is called, the variable "myclass::params::myvar" is set
2) hiera is called, the variable myclass::myvar is set

You can change the behaviour by setting in puppet.conf:

    data_binding_terminus = none

In my opinion this shouldn't happen, because a default value is set or it 
should be markable, if you want a hiera or a hiera_$something.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to