Issue #17474 has been updated by Josh Cooper. Status changed from In Topic Branch Pending Review to Merged - Pending Release Target version set to 3.x Affected Puppet version set to 3.0.0 Branch set to https://github.com/puppetlabs/puppet/pull/1451
Merged into master in commit f61a915. Note from Patrick, "The indirector actually expects returned objects to be instances of the model class for the specific indirection. The databindings code does not follow this expectation." As a result, if a databinding returns a scalar value, like `false`, then the indirector will not cache the value (since it relies on the model object implementing certain methods, like expiration. ---------------------------------------- Bug #17474: Indirector treats false from a terminus as nil https://projects.puppetlabs.com/issues/17474#change-82991 Author: Bruno Leon Status: Merged - Pending Release Priority: Normal Assignee: Patrick Carlisle Category: Target version: 3.x Affected Puppet version: 3.0.0 Keywords: false default Branch: https://github.com/puppetlabs/puppet/pull/1451 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 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.
