Skip to content

Commit

Permalink
Remove region support
Browse files Browse the repository at this point in the history
  • Loading branch information
tumido committed Mar 2, 2018
1 parent e3dcedc commit a747e3b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 66 deletions.
7 changes: 0 additions & 7 deletions app/models/manageiq/providers/google/cloud_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ class ManageIQ::Providers::Google::CloudManager < ManageIQ::Providers::CloudMana
include ManageIQ::Providers::Google::ManagerMixin

supports :provisioning
supports :regions

before_create :ensure_managers
before_update :ensure_managers_zone_and_provider_region
Expand Down Expand Up @@ -58,12 +57,6 @@ def supports_authentication?(authtype)
supported_auth_types.include?(authtype.to_s)
end

validates :provider_region, :inclusion => {:in => ManageIQ::Providers::Google::Regions.names}

def description
ManageIQ::Providers::Google::Regions.find_by_name(provider_region)[:description]
end

# Operations

def vm_start(vm, _options = {})
Expand Down
4 changes: 0 additions & 4 deletions app/models/manageiq/providers/google/network_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ def self.hostname_required?
false
end

def description
ManageIQ::Providers::Google::Regions.find_by_name(provider_region)[:description]
end

def self.display_name(number = 1)
n_('Network Provider (Google)', 'Network Providers (Google)', number)
end
Expand Down
55 changes: 0 additions & 55 deletions app/models/manageiq/providers/google/regions.rb

This file was deleted.

0 comments on commit a747e3b

Please sign in to comment.