Skip to content

Commit

Permalink
Show provision errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Carabas committed Oct 27, 2020
1 parent a25d694 commit f93623f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tasks/provision_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ def invoke_cloud_request(params, uri, job_url, verb)
response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http|
http.request(request)
end
response.body
if response.code == 200
return response.body
else
puts "ERROR CODE: #{response.code} - BODY: #{response.body}"
exit 1
end
end

def provision(platform, inventory_location, vars)
Expand Down

0 comments on commit f93623f

Please sign in to comment.