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
  • Loading branch information
kbrock committed May 18, 2018
2 parents 65631b8 + 1bc8c3f commit 9b33e0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/miq_request_workflow.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 9b33e0b

Please sign in to comment.