Issue #17474 has been reported by Bruno Leon.
----------------------------------------
Bug #17474: Class default parameter "true" not overriden by Hiera
https://projects.puppetlabs.com/issues/17474
Author: Bruno Leon
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version:
Keywords: false
default
Branch:
Here is a sample class:
class test ( $myparam = true, ) {
if $myparam {
notify { 'I am true': }
}
}
Calling it without anything in hiera:
notice: /Stage[main]/Test/Notify[I am true]/message: current_value absent,
should be I am true (noop)
Now in hiera you set:
test::myparam: false
However, when calling the class this still leads to the same result:
notice: /Stage[main]/Test/Notify[I am true]/message: current_value absent,
should be I am true (noop)
Obviously the param has not been overidden, even though the value is correctly
returned by Hiera if you do a lookup with hiera() directly.
This is somewhat similar to Bug #17105.
--
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.