summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-09-07 14:40:03 -0700
committerTim Smith <tsmith@chef.io>2018-09-07 14:40:03 -0700
commitb60247c9fe5c574bc30afa33c6d418a06d1388bf (patch)
treeb1f255782fad4a8085b4bf93c4df53d252914639
parent67e6a0572261f42e0d58d6079fbe2933744e8aaf (diff)
downloadchef-resource_inspector.tar.gz
Add required properties to the resource inspector outputresource_inspector
We need this to autogenerate documentation. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource_inspector.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/resource_inspector.rb b/lib/chef/resource_inspector.rb
index 1559932940..7363aad2a6 100644
--- a/lib/chef/resource_inspector.rb
+++ b/lib/chef/resource_inspector.rb
@@ -56,6 +56,7 @@ module ResourceInspector
acc << { name: n, description: opts[:description],
introduced: opts[:introduced], is: opts[:is],
deprecated: opts[:deprecated] || false,
+ required: opts[:required] || false,
default: get_default(opts[:default]),
name_property: opts[:name_property] || false }
end