binford2k
05/19/2022, 3:57 AMbastelfreak
05/19/2022, 1:36 PMjosh
05/19/2022, 4:23 PMjosh
05/19/2022, 4:24 PMSlackbot
05/19/2022, 4:26 PMVoxBot
05/19/2022, 4:30 PMjhoblitt
05/19/2022, 5:38 PM#in_sync? needed in types in order to sync false boolean property values? I've tried everything I can think of, including Puppet::Property::Boolean , and puppet is not calling the mutator method or #flush .
Debug: ...: exists? @property_hash: {... :value=>true, :ensure=>:present}
Debug: ...: exists? resource: {... :value=>false, ...}Alex Fisher
05/19/2022, 5:43 PMjhoblitt
05/19/2022, 5:44 PMsafe_insync? is the problem...Alex Fisher
05/19/2022, 5:44 PMundef)Alex Fisher
05/19/2022, 5:44 PMjhoblitt
05/19/2022, 5:45 PMAlex Fisher
05/19/2022, 5:46 PMundef makes sense. Not working with false is just a long standing bug.jhoblitt
05/19/2022, 5:47 PMjhoblitt
05/19/2022, 5:47 PMAlex Fisher
05/19/2022, 5:48 PMAlex Fisher
05/19/2022, 5:48 PMjhoblitt
05/19/2022, 5:48 PMAlex Fisher
05/19/2022, 5:49 PMjhoblitt
05/19/2022, 5:49 PMjhoblitt
05/19/2022, 5:50 PMAlex Fisher
05/19/2022, 5:51 PMnil, false, or :false... all I got is tears."Alex Fisher
05/19/2022, 5:51 PMnil, false, or :false... all I got is tears."Alex Fisher
05/19/2022, 5:52 PMjhoblitt
05/19/2022, 5:54 PMinsync? then that seems less drasticjhoblitt
05/19/2022, 5:54 PMinsync? then that seems less drasticAlex Fisher
05/19/2022, 5:56 PMif param.should with if !param.nil?) would have the potential to break a lot of things.jhoblitt
05/19/2022, 5:57 PMjosh
05/19/2022, 5:57 PMnewproperty(:something, parent: Puppet::Property::Bool) and then overriding sync? in the subclass. Also the harness could check if param.is_a?(Puppet::Property::Bool) then do the new thing else do the old thingAlex Fisher
05/19/2022, 5:57 PMsome_property => false in a case where the default is boolean true and their code is currently not doing anything.