Skip to content

Commit 7b7b78e

Browse files
committed
Merge remote-tracking branch 'upstream/1.6.x'
2 parents ec60720 + 9922bc6 commit 7b7b78e

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
@@ -15,13 +15,7 @@ def ensurable?
1515

1616
# rubocop complains when this is named has_feature?
1717
def feature?(feature)
18-
supported = (definition[:features] && definition[:features].include?(feature))
19-
if supported
20-
Puppet.debug("#{definition[:name]} supports `#{feature}`")
21-
else
22-
Puppet.debug("#{definition[:name]} does not support `#{feature}`")
23-
end
24-
supported
18+
(definition[:features] && definition[:features].include?(feature))
2519
end
2620

2721
def validate_schema(definition, attr_key)

0 commit comments

Comments
 (0)