diff options
author | John Keiser <jkeiser@opscode.com> | 2013-10-11 13:11:39 -0700 |
---|---|---|
committer | John Keiser <jkeiser@opscode.com> | 2013-10-11 13:12:26 -0700 |
commit | 9974a71ccc5345e90055a3674aa2f43025cad526 (patch) | |
tree | 6bc5da0e6f8c7383a8c1278dce464bb6346c1f7d | |
parent | 9da75f9fff9814ef86224155add844fb68f7d7ba (diff) | |
download | chef-zero-9974a71ccc5345e90055a3674aa2f43025cad526.tar.gz |
Pass options through when deleting directories (fixes cookbook and data bag delete)
-rw-r--r-- | lib/chef_zero/rest_base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef_zero/rest_base.rb b/lib/chef_zero/rest_base.rb index 9549baf..55dc862 100644 --- a/lib/chef_zero/rest_base.rb +++ b/lib/chef_zero/rest_base.rb @@ -70,7 +70,7 @@ module ChefZero def delete_data_dir(request, rest_path, *options) rest_path ||= request.rest_path begin - data_store.delete_dir(rest_path) + data_store.delete_dir(rest_path, *options) rescue DataStore::DataNotFoundError raise RestErrorResponse.new(404, "Object not found: #{build_uri(request.base_uri, request.rest_path)}") end |