Issue #17105 has been updated by Nick Fagerlund.
Category set to databinding
Oh and I should mention: `hiera('ntp::disabled')` works fine! So this is in the
data bindings code, not the hiera_puppet helper code.
----------------------------------------
Bug #17105: Hiera booleans are broken -- explicit false value registers as
lookup failure
https://projects.puppetlabs.com/issues/17105#change-74309
Author: Nick Fagerlund
Status: Unreviewed
Priority: Normal
Assignee:
Category: databinding
Target version: 3.0.x
Affected Puppet version: 3.0.1
Keywords:
Branch:
`/var/lib/hiera/common.yaml:`
---
ntp::disabled: false
`fake_classes.pp:`
class ntp ($disabled) { }
include ntp
This explodes! Although a `hiera ntp::disabled` call from the command line
returns the correct result, Puppet registers this as a failed lookup and bails
compilation with `Error: Must pass disabled to Class[Ntp]`. This doesn't happen
with `true`, just `false`.
I assume we're just doing an `if returned_value` or something somewhere, which
will fail on both `nil` (value not found) and `false` (explicit false value
found). We can't do that -- booleans are a core data type and Puppet should
definitely accept them from Hiera.
--
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.