Skip to content

Commit

Permalink
Merge pull request #17422 from NickLaMuro/avoid_duplicate_get_ems_fol…
Browse files Browse the repository at this point in the history
…ders_for_datacenters

Add uniq on datacenters in #host_to_folder
(cherry picked from commit 9b33e0b)

https://bugzilla.redhat.com/show_bug.cgi?id=1593798
  • Loading branch information
kbrock authored and simaishi committed Jun 21, 2018
1 parent 3f5401b commit 347a98c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/miq_request_workflow.rb
Expand Up @@ -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))
Expand Down

0 comments on commit 347a98c

Please sign in to comment.