summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Keiser <jkeiser@opscode.com>2013-10-11 13:11:39 -0700
committerJohn Keiser <jkeiser@opscode.com>2013-10-11 13:12:26 -0700
commit9974a71ccc5345e90055a3674aa2f43025cad526 (patch)
tree6bc5da0e6f8c7383a8c1278dce464bb6346c1f7d
parent9da75f9fff9814ef86224155add844fb68f7d7ba (diff)
downloadchef-zero-9974a71ccc5345e90055a3674aa2f43025cad526.tar.gz
Pass options through when deleting directories (fixes cookbook and data bag delete)
-rw-r--r--lib/chef_zero/rest_base.rb2
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