Skip to content

Commit

Permalink
Merge pull request #580 from jrafanie/parent_is_not_an_association_an…
Browse files Browse the repository at this point in the history
…d_cannot_be_included

parent is a method, not an association, and cannot be included
  • Loading branch information
agrare authored Apr 8, 2020
2 parents b70eabd + 2c8fb6a commit d5ad16b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d5ad16b

Please sign in to comment.