Skip to content

Commit

Permalink
Merge babdd06 into 7550098
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Aug 28, 2018
2 parents 7550098 + babdd06 commit e6662e6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/models/manageiq/providers/base_manager/refresher.rb
Expand Up @@ -132,6 +132,8 @@ def collect_inventory_for_targets(ems, targets)
# override this method and return an array of:
# [[target1, inventory_for_target1], [target2, inventory_for_target2]]

return [[ems, nil]] unless refresher_options.inventory_object_refresh

provider_module = ManageIQ::Providers::Inflector.provider_module(ems.class).name

targets_to_collectors = targets.each_with_object({}) do |target, memo|
Expand Down
Expand Up @@ -50,7 +50,7 @@ def host_system_services

def snapshots
add_properties(
:manager_ref => %i(uid),
:manager_ref => %i(vm_or_template uid),
:parent_inventory_collections => %i(vms miq_templates),
)
end
Expand Down Expand Up @@ -214,7 +214,14 @@ def switches

def lans
add_properties(
:manager_ref => %i(uid_ems),
:manager_ref => %i(switch uid_ems),
:parent_inventory_collections => %i(hosts),
)
end

def subnets
add_properties(
:manager_ref => %i(lan ems_ref),
:parent_inventory_collections => %i(hosts),
)
end
Expand Down
2 changes: 2 additions & 0 deletions config/settings.yml
Expand Up @@ -158,8 +158,10 @@
:debug_trace: false
:capture_vm_created_on_date: false
:ansible_tower_automation:
:inventory_object_refresh: true
:refresh_interval: 15.minutes
:embedded_ansible_automation:
:inventory_object_refresh: true
:refresh_interval: 15.minutes
:foreman_configuration:
:refresh_interval: 15.minutes
Expand Down

0 comments on commit e6662e6

Please sign in to comment.