From 09f9fe66dafb95ae4fca0c01d8e945977573ad00 Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Thu, 9 Nov 2017 10:54:12 -0500 Subject: [PATCH] Merge pull request #16408 from pkliczewski/master Datastores duplicated after a refresh (cherry picked from commit c736542bd941e275f1765a27fe12989c9a73704d) --- .../inventory_collection_default/infra_manager.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/models/manager_refresh/inventory_collection_default/infra_manager.rb b/app/models/manager_refresh/inventory_collection_default/infra_manager.rb index 8ee5d8cf836..96bb127c5b9 100644 --- a/app/models/manager_refresh/inventory_collection_default/infra_manager.rb +++ b/app/models/manager_refresh/inventory_collection_default/infra_manager.rb @@ -124,8 +124,10 @@ def ems_clusters(extra_attributes = {}) def storages(extra_attributes = {}) attributes = { :model_class => ::Storage, - # TODO: change :manager_ref => [:location], - :association => :storages + :manager_ref => [:location], + :association => :storages, + :complete => false, + :arel => Storage } attributes.merge!(extra_attributes)