lib/new_relic/agent/configuration/manager.rb in newrelic_rpm-3.9.2.239 vs lib/new_relic/agent/configuration/manager.rb in newrelic_rpm-3.9.3.241

- old
+ new

@@ -176,10 +176,20 @@ each {|key, _| hash.delete(key) } hash end def to_collector_hash - DottedHash.new(apply_mask(flattened)).to_hash + DottedHash.new(apply_mask(flattened)).to_hash.delete_if do |k, v| + default = DEFAULTS[k] + if default + default[:local_only] + else + # In our tests, we add totally bogus configs, because testing. + # In those cases, there will be no default. So we'll just let + # them through. + false + end + end end def app_names case NewRelic::Agent.config[:app_name] when Array then NewRelic::Agent.config[:app_name]