Method: Puppet::Property::KeyValue#process_current_hash

Defined in:
lib/puppet/property/keyvalue.rb

#process_current_hash(current) ⇒ Object



65
66
67
68
69
70
71
# File 'lib/puppet/property/keyvalue.rb', line 65

def process_current_hash(current)
  return {} if current == :absent

  # inclusive means we are managing everything so if it isn't in should, its gone
  current.each_key { |key| current[key] = nil } if inclusive?
  current
end