Skip to content

Commit

Permalink
Remove the option for legacy refresh from vCloud
Browse files Browse the repository at this point in the history
Remove the setting to allow for legacy refresh in vCloud and delete the
old parsers.
  • Loading branch information
agrare committed Dec 4, 2019
1 parent 3133532 commit b4cbe30
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 966 deletions.
5 changes: 4 additions & 1 deletion app/models/manageiq/providers/vmware/cloud_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ class ManageIQ::Providers::Vmware::CloudManager < ManageIQ::Providers::CloudMana
require_nested :OrchestrationTemplate
require_nested :EventCatcher
require_nested :EventParser
require_nested :RefreshParser
require_nested :RefreshWorker
require_nested :Refresher
require_nested :Template
Expand Down Expand Up @@ -148,6 +147,10 @@ def supported_catalog_types
%w(vmware)
end

def inventory_object_refresh?
true
end

def self.display_name(number = 1)
n_('Cloud Provider (VMware vCloud)', 'Cloud Providers (VMware vCloud)', number)
end
Expand Down
271 changes: 0 additions & 271 deletions app/models/manageiq/providers/vmware/cloud_manager/refresh_parser.rb

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
class ManageIQ::Providers::Vmware::CloudManager::Refresher < ManageIQ::Providers::BaseManager::Refresher
def parse_legacy_inventory(ems)
ManageIQ::Providers::Vmware::CloudManager::RefreshParser.ems_inv_to_hashes(ems, refresher_options)
end

def save_inventory(ems, target, hashes)
super
EmsRefresh.queue_refresh(ems.network_manager)
Expand Down
5 changes: 4 additions & 1 deletion app/models/manageiq/providers/vmware/network_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ class ManageIQ::Providers::Vmware::NetworkManager < ManageIQ::Providers::Network
require_nested :CloudNetwork
require_nested :CloudSubnet
require_nested :NetworkPort
require_nested :RefreshParser
require_nested :RefreshWorker
require_nested :Refresher

Expand Down Expand Up @@ -42,4 +41,8 @@ def self.hostname_required?
def description
@description ||= "VMware Cloud Network".freeze
end

def inventory_object_refresh?
true
end
end
Loading

0 comments on commit b4cbe30

Please sign in to comment.