Issue #16558 has been reported by Raphaël Pinson.
----------------------------------------
Bug #16558: Boolean properties not working in ruby providers
https://projects.puppetlabs.com/issues/16558
Author: Raphaël Pinson
Status: Unreviewed
Priority: Normal
Assignee:
Category: provider
Target version: 2.7.x
Affected Puppet version: development
Keywords: provider,property
Branch:
When writing a ruby provider for a type, it is not possible to use boolean
properties. The reason lies in `lib/puppet/property.rb`:
<pre>
def sync
devfail "Got a nil value for should" unless should
set(should)
end
</pre>
which fails when `should == false`, which is a correct target value for a
boolean.
When replacing this with:
<pre>
def sync
devfail "Got a nil value for should" if should.nil?
set(should)
end
</pre>
it works fine.
--
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.