summaryrefslogtreecommitdiff
path: root/lib/chef_zero/endpoints/data_bags_endpoint.rb
diff options
context:
space:
mode:
authorJohn Keiser <jkeiser@opscode.com>2014-08-19 23:53:36 -0700
committerJohn Keiser <jkeiser@opscode.com>2014-08-22 09:20:49 -0700
commit0bccfd74679ae382d04e319972353f9a692bbf30 (patch)
tree35c0b14677bc4ae9dd9974b08721caf711b70659 /lib/chef_zero/endpoints/data_bags_endpoint.rb
parent91768b0e9a0a151635a0a7a96823113b200c67c6 (diff)
downloadchef-zero-0bccfd74679ae382d04e319972353f9a692bbf30.tar.gz
Move all defaults to DefaultCreator, calculate on fly,
remember ownership
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 c3e5970..732c1a5 100644
--- a/lib/chef_zero/endpoints/data_bags_endpoint.rb
+++ b/lib/chef_zero/endpoints/data_bags_endpoint.rb
@@ -14,7 +14,7 @@ module ChefZero
elsif exists_data_dir?(request, request.rest_path[0..1] + ['data', name])
error(409, "Object already exists")
else
- data_store.create_dir(request.rest_path[0..1] + ['data'], name, :recursive)
+ create_data_dir(request, request.rest_path[0..1] + ['data'], name, :recursive)
json_response(201, {"uri" => "#{build_uri(request.base_uri, request.rest_path + [name])}"})
end
end