summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Paradise <marc@getchef.com>2015-03-04 12:16:33 -0500
committertyler-ball <tyleraball@gmail.com>2015-07-10 10:24:40 -0700
commita921e1a8b38063269f644cf1904226634539054a (patch)
tree3b5420c37faf8a2db84a358108842a66a6e796d0
parentaa959000a3ec2582820f4f96e8ec7f97df7ae600 (diff)
downloadchef-zero-a921e1a8b38063269f644cf1904226634539054a.tar.gz
Force complete deletion of org on DELETE request
-rw-r--r--lib/chef_zero/endpoints/organization_endpoint.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef_zero/endpoints/organization_endpoint.rb b/lib/chef_zero/endpoints/organization_endpoint.rb
index 585c46a..a5512db 100644
--- a/lib/chef_zero/endpoints/organization_endpoint.rb
+++ b/lib/chef_zero/endpoints/organization_endpoint.rb
@@ -32,7 +32,7 @@ module ChefZero
def delete(request)
org = get_data(request, request.rest_path + [ 'org' ])
- delete_data_dir(request, request.rest_path)
+ delete_data_dir(request, request.rest_path, :recursive)
already_json_response(200, populate_defaults(request, org))
end