Skip to content

Commit

Permalink
Show the new error message when provisioning a VM from a remote template
Browse files Browse the repository at this point in the history
  • Loading branch information
carbonin committed Oct 27, 2016
1 parent 505dcd2 commit d08652d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/controllers/application_controller/miq_request_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,15 @@ def prov_req_submit
id = session[:edit][:req_id] || "new"
return unless load_edit("prov_edit__#{id}", "show_list")
@edit[:new][:schedule_time] = @edit[:new][:schedule_time].in_time_zone("Etc/UTC") if @edit[:new][:schedule_time]
if @edit[:wf].make_request(@edit[:req_id], @edit[:new])

begin
request = @edit[:wf].make_request(@edit[:req_id], @edit[:new])
rescue => bang
request = false
add_flash(bang.message, :error)
end

if request
@breadcrumbs.pop if @breadcrumbs
typ = @edit[:org_controller]
case typ
Expand Down

0 comments on commit d08652d

Please sign in to comment.