From 4298dd52e8a7b6ab91f0e7e66a0001431a288ed1 Mon Sep 17 00:00:00 2001 From: Tomas Coufal Date: Fri, 2 Mar 2018 15:22:41 +0100 Subject: [PATCH] Revert "Hide region from Cloud provider forms if it's not required" This reverts commit 34a42833db416d644fa9350eda1162462e100df7. --- app/controllers/ems_common.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/ems_common.rb b/app/controllers/ems_common.rb index c74d6531a46..8461e614de0 100644 --- a/app/controllers/ems_common.rb +++ b/app/controllers/ems_common.rb @@ -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|