diff --git a/app/models/miq_request_workflow.rb b/app/models/miq_request_workflow.rb index fd6d5829b95..f6ae2bc611d 100644 --- a/app/models/miq_request_workflow.rb +++ b/app/models/miq_request_workflow.rb @@ -1188,7 +1188,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))