Issue #17691 has been reported by Oliver Schad.

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

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:

------------
params.pp
------------

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

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

class myclass ( $myvar = $myclass::params::myvar ) {
}

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 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-bugs?hl=en.

Reply via email to