Skip to content

Commit

Permalink
Check that delete of OrchestrationStack didn't return an exception
Browse files Browse the repository at this point in the history
  • Loading branch information
ZitaNemeckova committed Nov 27, 2017
1 parent 00c69cc commit cead77d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/controllers/application_controller/ci_processing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,15 @@ def deletehosts
# Delete all selected or single displayed stack(s)
def orchestration_stack_delete
assert_privileges("orchestration_stack_delete")
delete_elements(OrchestrationStack, :process_orchestration_stacks)
begin
delete_elements(OrchestrationStack, :process_orchestration_stacks)
rescue StandardError => err
add_flash(_("Error during deletion: %{error_message}") % {:error_message => err.message}, :error)
if @lastaction == "show_list"
show_list
@refresh_partial = "layouts/gtl"
end
end
end

def configuration_job_delete
Expand Down

0 comments on commit cead77d

Please sign in to comment.