diff options
author | Thom May <thom@chef.io> | 2018-04-18 16:22:31 +0100 |
---|---|---|
committer | Thom May <thom@chef.io> | 2018-04-18 16:22:31 +0100 |
commit | 5480d39edc2b367bdabce4c5adf5e5bd91d44274 (patch) | |
tree | 0a80fb6519637cb0e49a0dff86053cc9884c3214 /lib/chef | |
parent | 7707f0761e41a6ca2090c7a6c40275400d5ca262 (diff) | |
download | chef-5480d39edc2b367bdabce4c5adf5e5bd91d44274.tar.gz |
add name_property to resource inspectortm/inspect_name_properties
Signed-off-by: Thom May <thom@chef.io>
Diffstat (limited to 'lib/chef')
-rw-r--r-- | lib/chef/resource_inspector.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/chef/resource_inspector.rb b/lib/chef/resource_inspector.rb index 0f4f718c72..b112cb0565 100644 --- a/lib/chef/resource_inspector.rb +++ b/lib/chef/resource_inspector.rb @@ -40,7 +40,10 @@ module ResourceInspector data[:properties] = properties.each_with_object([]) do |(n, k), acc| opts = k.options - acc << { name: n, description: opts[:description], introduced: opts[:introduced], is: opts[:is], deprecated: opts[:deprecated] || false } + acc << { name: n, description: opts[:description], + introduced: opts[:introduced], is: opts[:is], + deprecated: opts[:deprecated] || false, + name_property: opts[:name_property] || false } end data end |