Skip to content

Commit

Permalink
call orchestrate_destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
jameswnl committed Dec 7, 2017
1 parent 7a5fd37 commit 47f9751
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/models/ext_management_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,11 @@ def orchestrate_destroy
before_destroy :assert_no_queues_present

def assert_no_queues_present
throw(:abort) if MiqWorker.find_alive.where(:queue_name => queue_name).any?
if enabled?
orchestrate_destroy
else
throw(:abort) if MiqWorker.find_alive.where(:queue_name => queue_name).any?
end
end

def disconnect_inv
Expand Down

0 comments on commit 47f9751

Please sign in to comment.