Skip to content

Commit

Permalink
Merge pull request #3508 from tumido/hide_regions_when_not_required
Browse files Browse the repository at this point in the history
Revert "Hide region from Cloud provider forms if it's not required"
  • Loading branch information
mzazrivec authored Mar 5, 2018
2 parents 85ef2d8 + 4298dd5 commit 4384cc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/ems_common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ def form_instance_vars
end

def retrieve_provider_regions
managers = model.supported_subclasses.select { |s| s.supports_regions? && s.try(:region_required?) != false }
managers = model.supported_subclasses.select(&:supports_regions?)
managers.each_with_object({}) do |manager, provider_regions|
regions = manager.parent::Regions.all.sort_by { |r| r[:description] }
provider_regions[manager.ems_type] = regions.map do |region|
Expand Down

0 comments on commit 4384cc7

Please sign in to comment.