diff options
Diffstat (limited to 'lib/chef_zero/endpoints/data_bags_endpoint.rb')
-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 0ddb34e..5b9dd14 100644 --- a/lib/chef_zero/endpoints/data_bags_endpoint.rb +++ b/lib/chef_zero/endpoints/data_bags_endpoint.rb @@ -15,7 +15,7 @@ module ChefZero error(409, "Object already exists") else create_data_dir(request, request.rest_path[0..1] + ["data"], name, :recursive) - json_response(201, { "uri" => "#{build_uri(request.base_uri, request.rest_path + [name])}" }) + json_response(201, { "uri" => (build_uri(request.base_uri, request.rest_path + [name])).to_s }) end end end |