summaryrefslogtreecommitdiff
path: root/lib/chef_zero/endpoints/data_bags_endpoint.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef_zero/endpoints/data_bags_endpoint.rb')
-rw-r--r--lib/chef_zero/endpoints/data_bags_endpoint.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef_zero/endpoints/data_bags_endpoint.rb b/lib/chef_zero/endpoints/data_bags_endpoint.rb
index 5b9dd14..f90b7d7 100644
--- a/lib/chef_zero/endpoints/data_bags_endpoint.rb
+++ b/lib/chef_zero/endpoints/data_bags_endpoint.rb
@@ -10,7 +10,7 @@ module ChefZero
json = FFI_Yajl::Parser.parse(contents)
name = identity_keys.map { |k| json[k] }.select { |v| v }.first
if name.nil?
- error(400, "Must specify #{identity_keys.map { |k| k.inspect }.join(' or ')} in JSON")
+ error(400, "Must specify #{identity_keys.map(&:inspect).join(" or ")} in JSON")
elsif exists_data_dir?(request, request.rest_path[0..1] + ["data", name])
error(409, "Object already exists")
else