summaryrefslogtreecommitdiff
path: root/lib/chef_zero/endpoints/cookbook_artifacts_endpoint.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef_zero/endpoints/cookbook_artifacts_endpoint.rb')
-rw-r--r--lib/chef_zero/endpoints/cookbook_artifacts_endpoint.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/chef_zero/endpoints/cookbook_artifacts_endpoint.rb b/lib/chef_zero/endpoints/cookbook_artifacts_endpoint.rb
index bfe2ff5..e2d1d2a 100644
--- a/lib/chef_zero/endpoints/cookbook_artifacts_endpoint.rb
+++ b/lib/chef_zero/endpoints/cookbook_artifacts_endpoint.rb
@@ -8,12 +8,12 @@ module ChefZero
data = {}
artifacts = begin
- list_data(request)
- rescue Exception => e
- if e.response_code == 404
- return already_json_response(200, "{}")
- end
- end
+ list_data(request)
+ rescue Exception => e
+ if e.response_code == 404
+ return already_json_response(200, "{}")
+ end
+ end
artifacts.each do |cookbook_artifact|
cookbook_url = build_uri(request.base_uri, request.rest_path + [cookbook_artifact])