diff --git a/app/models/manageiq/providers/ansible_tower/inventory/target/automation_manager.rb b/app/models/manageiq/providers/ansible_tower/inventory/target/automation_manager.rb index 9a2991d9edc..7cb23608c0e 100644 --- a/app/models/manageiq/providers/ansible_tower/inventory/target/automation_manager.rb +++ b/app/models/manageiq/providers/ansible_tower/inventory/target/automation_manager.rb @@ -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} @@ -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], @@ -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],