Skip to content

Commit 139dc9f

Browse files
committed
(maint) reduce debug noise caused by feature?
1 parent 3e8107e commit 139dc9f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/puppet/resource_api/type_definition.rb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,7 @@ def namevars
2727

2828
# rubocop complains when this is named has_feature?
2929
def feature?(feature)
30-
supported = (definition[:features] && definition[:features].include?(feature))
31-
if supported
32-
Puppet.debug("#{definition[:name]} supports `#{feature}`")
33-
else
34-
Puppet.debug("#{definition[:name]} does not support `#{feature}`")
35-
end
36-
supported
30+
(definition[:features] && definition[:features].include?(feature))
3731
end
3832

3933
# validates a resource hash against its type schema

0 commit comments

Comments
 (0)