We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2c2304 commit d2e4c4aCopy full SHA for d2e4c4a
puppet/lib/puppet/indirector/facts/puppetdb.rb
@@ -18,13 +18,11 @@ def get_trusted_info(node)
18
19
def filter_facts(obj, blacklist, blacklist_regexps, path = [])
20
regexps = blacklist_regexps.map { |re| Regexp.new(re) }
21
- Puppet.warning("Received obj with values: #{obj.inspect}")
22
case obj
23
when Hash
24
obj.each_with_object({}) do |(k, v), h|
25
full_path = (path + [k]).join('.')
26
excluded = blacklist.include?(full_path) || regexps.any? { |re| full_path =~ re }
27
- Puppet.warning("Fact filter: checking '#{full_path}'#{excluded ? ' [EXCLUDED]' : ''}")
28
next if excluded
29
h[k] = filter_facts(v, blacklist, blacklist_regexps, path + [k])
30
end
0 commit comments