Skip to content

Commit

Permalink
Merge pull request #480 from slemrmartin/inventory-builder-super
Browse files Browse the repository at this point in the history
Inventory::Builder functions moved to Inventory
  • Loading branch information
agrare authored Aug 31, 2018
2 parents e9a33a9 + f0b8857 commit bf43316
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 71 deletions.
71 changes: 0 additions & 71 deletions app/models/manageiq/providers/amazon/builder.rb

This file was deleted.

18 changes: 18 additions & 0 deletions app/models/manageiq/providers/amazon/inventory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,22 @@ class ManageIQ::Providers::Amazon::Inventory < ManageIQ::Providers::Inventory
require_nested :Collector
require_nested :Parser
require_nested :Persister

# Default manager for building collector/parser/persister classes
# when failed to get class name from refresh target automatically
def self.default_manager_name
"CloudManager"
end

def self.parser_classes_for(ems, target)
case target
when ManagerRefresh::TargetCollection
[ManageIQ::Providers::Amazon::Inventory::Parser::CloudManager,
ManageIQ::Providers::Amazon::Inventory::Parser::NetworkManager,
ManageIQ::Providers::Amazon::Inventory::Parser::StorageManager::Ebs]
else
super
end
end

end

0 comments on commit bf43316

Please sign in to comment.