Skip to content

Insync? not invoked for Puppet::Property::Boolean #9542

Closed
@h-haaks

Description

@h-haaks

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions