diff --git a/app/models/manageiq/providers/openstack/inventory/collector/target_collection.rb b/app/models/manageiq/providers/openstack/inventory/collector/target_collection.rb index d2481722b..778741aa4 100644 --- a/app/models/manageiq/providers/openstack/inventory/collector/target_collection.rb +++ b/app/models/manageiq/providers/openstack/inventory/collector/target_collection.rb @@ -384,7 +384,7 @@ def infer_related_cloud_tenant_ems_refs_api! def infer_related_vm_ems_refs_db! changed_vms = manager.vms.where(:ems_ref => references(:vms)).includes(:key_pairs, :network_ports, :floating_ips, - :orchestration_stack, :cloud_networks, :cloud_tenant, :parent) + :orchestration_stack, :cloud_networks, :cloud_tenant) changed_vms.each do |vm| stack = vm.orchestration_stack all_stacks = ([stack] + (stack.try(:ancestors) || [])).compact