Closed
Description
Describe the Bug
I have a custom type with a boolean property defined as
newproperty(:myprop, parent: Puppet::Property::Boolean) do
end
On puppet run when 'is' value is true and 'should' value is false, the insync? is never invoked and puppet does not change the value of the property!
I think the problem is here https://github.com/puppetlabs/puppet/blob/main/lib/puppet/property.rb#L274
When @should is false at this point safe_insync?
never invoke insync?
Expected Behavior
I would expect puppet to change the value from true to false