Skip to content

Commit

Permalink
Merge pull request #4790 from yrudman/allow-remote-retiement-for-service
Browse files Browse the repository at this point in the history
Allow Service retirement over Centralized Administration
  • Loading branch information
mzazrivec authored Oct 24, 2018
2 parents ff14ca6 + f80cb98 commit c15b650
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/controllers/application_controller/ci_processing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -280,11 +280,13 @@ def process_objects(objs, task, display_name = nil)

display_name ||= task.titleize
case klass_str
when 'OrchestrationStack', 'Service', 'CloudObjectStoreContainer', 'CloudObjectStoreObject'
objs, _objs_out_reg = filter_ids_in_region(objs, klass.to_s)
when 'CloudObjectStoreContainer', 'CloudObjectStoreObject'
objs, _objs_out_reg = filter_ids_in_region(objs, klass_str)
when 'VmOrTemplate'
objs, _objs_out_reg = filter_ids_in_region(objs, "VM") unless VmOrTemplate::REMOTE_REGION_TASKS.include?(task)
klass = Vm
when 'OrchestrationStack', 'Service'
objs, _objs_out_reg = filter_ids_in_region(objs, klass_str) unless task == "retire_now"
end
return if objs.empty?

Expand Down

0 comments on commit c15b650

Please sign in to comment.