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.
feature?
1 parent 3e8107e commit 139dc9fCopy full SHA for 139dc9f
lib/puppet/resource_api/type_definition.rb
@@ -27,13 +27,7 @@ def namevars
27
28
# rubocop complains when this is named has_feature?
29
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
+ (definition[:features] && definition[:features].include?(feature))
37
end
38
39
# validates a resource hash against its type schema
0 commit comments