Skip to content

Commit

Permalink
Ansible has to use kwargs for model_class
Browse files Browse the repository at this point in the history
Ansible has to use kwargs for model_class
  • Loading branch information
Ladas committed Feb 8, 2017
1 parent d4ced2b commit a0d9636
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class ManageIQ::Providers::AnsibleTower::Inventory::Target::AutomationManager < ManagerRefresh::Inventory::Target
def inventory_groups
collections[:inventory_groups] ||= ManagerRefresh::InventoryCollection.new(
ManageIQ::Providers::AutomationManager::InventoryRootGroup,
:model_class => ManageIQ::Providers::AutomationManager::InventoryRootGroup,
:association => :inventory_root_groups,
:parent => @root,
:builder_params => {:manager => @root}
Expand All @@ -10,7 +10,7 @@ def inventory_groups

def configured_systems
collections[:configured_systems] ||= ManagerRefresh::InventoryCollection.new(
ManageIQ::Providers::AnsibleTower::AutomationManager::ConfiguredSystem,
:model_class => ManageIQ::Providers::AnsibleTower::AutomationManager::ConfiguredSystem,
:association => :configured_systems,
:parent => @root,
:manager_ref => [:manager_ref],
Expand All @@ -20,7 +20,7 @@ def configured_systems

def configuration_scripts
collections[:configuration_scripts] ||= ManagerRefresh::InventoryCollection.new(
ManageIQ::Providers::AnsibleTower::AutomationManager::ConfigurationScript,
:model_class => ManageIQ::Providers::AnsibleTower::AutomationManager::ConfigurationScript,
:association => :configuration_scripts,
:parent => @root,
:manager_ref => [:manager_ref],
Expand Down

0 comments on commit a0d9636

Please sign in to comment.