diff options
| author | John Keiser <jkeiser@opscode.com> | 2013-05-28 13:15:40 -0700 |
|---|---|---|
| committer | John Keiser <jkeiser@opscode.com> | 2013-05-28 13:15:40 -0700 |
| commit | 3db27d5466b9c0335c0bc7f2e8adbc69bc1cae10 (patch) | |
| tree | 606d66cafc56f5fda819740474df5d04353d3c6e /lib/chef_zero/endpoints | |
| parent | 7dbde11ea5d97fe29e9c824116bbcf7f2a7b7b0c (diff) | |
| download | chef-zero-3db27d5466b9c0335c0bc7f2e8adbc69bc1cae10.tar.gz | |
Fix new data bag and cookbook creation in rspec
Diffstat (limited to 'lib/chef_zero/endpoints')
| -rw-r--r-- | lib/chef_zero/endpoints/data_bags_endpoint.rb | 2 |
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 0b29769..7b50ea9 100644 --- a/lib/chef_zero/endpoints/data_bags_endpoint.rb +++ b/lib/chef_zero/endpoints/data_bags_endpoint.rb @@ -13,7 +13,7 @@ module ChefZero elsif exists_data_dir?(request, ['data', name]) error(409, "Object already exists") else - data_store.create_dir(['data'], name, :keep_existing) + data_store.create_dir(['data'], name, :recursive) json_response(201, {"uri" => "#{build_uri(request.base_uri, request.rest_path + [name])}"}) end end |
