Skip to content

Commit

Permalink
Fix inventory collection lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mansam committed Apr 13, 2017
1 parent aacba30 commit 7b8c06c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ def vm_and_miq_template_ancestry(extra_attributes = {})

# associate parent templates to child instances
parent_miq_templates = miq_templates_inventory_collection.model_class
.select([:id])
.where(:id => vms_genealogy_parents.values).find_each.index_by(&:id)
.select([:id])
.where(:id => vms_genealogy_parents.values).find_each.index_by(&:id)
vms_inventory_collection.model_class
.select([:id])
.where(:id => vms_genealogy_parents.keys).find_each do |vm|
Expand All @@ -228,8 +228,8 @@ def vm_and_miq_template_ancestry(extra_attributes = {})
.select([:id])
.where(:id => miq_template_genealogy_parents.values).find_each.index_by(&:id)
miq_templates_inventory_collection.model_class
.select([:id])
.where(:id => miq_template_genealogy_parents.keys).find_each do |miq_template|
.select([:id])
.where(:id => miq_template_genealogy_parents.keys).find_each do |miq_template|
parent = parent_vms[miq_template_genealogy_parents[miq_template.id]]
miq_template.with_relationship_type('genealogy') { miq_template.parent = parent }
end
Expand Down

0 comments on commit 7b8c06c

Please sign in to comment.