diff --git a/app/models/miq_request_workflow.rb b/app/models/miq_request_workflow.rb index f6207b56db2..e1c21298b84 100644 --- a/app/models/miq_request_workflow.rb +++ b/app/models/miq_request_workflow.rb @@ -1195,7 +1195,7 @@ def host_to_folder(src) result = find_datacenter_for_ci(h) rails_logger("host_to_folder for host #{h.name}", 1) result - end.compact + end.compact.uniq datacenters.each_with_object({}) do |dc, folders| rails_logger("host_to_folder for dc #{dc.name}", 0) folders.merge!(get_ems_folders(dc))