ManageIQ/manageiq-providers-azure

View on GitHub
app/models/manageiq/providers/azure/inventory.rb

Summary

Maintainability
A
0 mins
Test Coverage
B
85%
class ManageIQ::Providers::Azure::Inventory < ManageIQ::Providers::Inventory
  # 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)
    if ems.kind_of?(ManageIQ::Providers::Azure::ContainerManager)
      super
    else
      [ManageIQ::Providers::Azure::Inventory::Parser::CloudManager, ManageIQ::Providers::Azure::Inventory::Parser::NetworkManager]
    end
  end
end