summaryrefslogtreecommitdiff
path: root/lib/chef/resource.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2017-03-30 12:24:56 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2017-03-30 12:24:56 -0700
commitde209e6ee12939f641ec0ed002c2d3506abaafe7 (patch)
tree0a6b37f0519a71444250c5ffd84d3df89649228d /lib/chef/resource.rb
parent5584126a725ab72c24ea610328f56a905986295b (diff)
downloadchef-de209e6ee12939f641ec0ed002c2d3506abaafe7.tar.gz
make nameless properties opt-in
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/resource.rb')
-rw-r--r--lib/chef/resource.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource.rb b/lib/chef/resource.rb
index 2aee8536a4..9dc01a8d3a 100644
--- a/lib/chef/resource.rb
+++ b/lib/chef/resource.rb
@@ -84,7 +84,7 @@ class Chef
# @param name [Object] The name to set, typically a String or Array
# @return [String] The name of this Resource.
#
- property :name, String, coerce: proc { |v| v.is_a?(Array) ? v.join(", ") : v.to_s }, desired_state: false
+ property :name, String, coerce: proc { |v| v.is_a?(Array) ? v.join(", ") : v.to_s }, desired_state: false, required: true
#
# The node the current Chef run is using.