summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2016-01-27 15:47:03 -0800
committerJohn Keiser <john@johnkeiser.com>2016-01-28 08:36:52 -0800
commit80783dac0105c37a857534d91cf38918608c3966 (patch)
tree263d371284d298c4e50466ec0cc7faca74674ac2 /lib
parent832f9a48dcef5e29b1a65ddfde9503c95f3b4db5 (diff)
downloadchef-zero-80783dac0105c37a857534d91cf38918608c3966.tar.gz
Fix container creation (was using wrong path)cd/run-acl-specs
Diffstat (limited to 'lib')
-rw-r--r--lib/chef_zero/endpoints/containers_endpoint.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/chef_zero/endpoints/containers_endpoint.rb b/lib/chef_zero/endpoints/containers_endpoint.rb
index 931fe6c..8a4220f 100644
--- a/lib/chef_zero/endpoints/containers_endpoint.rb
+++ b/lib/chef_zero/endpoints/containers_endpoint.rb
@@ -16,8 +16,7 @@ module ChefZero
# if they don't match, id wins.
container_name = data["id"] || data["containername"]
container_path_suffix = data["containerpath"].split("/").reject { |o| o.empty? }
- container_data_path = request.rest_path + container_path_suffix
- create_data(request, container_data_path, container_name, to_json({}), :create_dir)
+ create_data(request, request.rest_path, container_name, to_json({}), :create_dir)
json_response(201, { uri: build_uri(request.base_uri, request.rest_path + container_path_suffix + [container_name]) })
end