Skip to content

Commit

Permalink
Add a targeted persister
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Jul 13, 2017
1 parent d331c13 commit 77b2209
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ def wait_for_updates(vim)

_log.info("Refreshing initial inventory...Complete")
initial = false

# After initial refresh switch to targeted persister
persister_class = ems.class::Inventory::Persister::Targeted
end
ensure
property_filter.DestroyPropertyFilter unless property_filter.nil?
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class ManageIQ::Providers::Vmware::InfraManager::Inventory::Persister::Targeted < ManageIQ::Providers::Vmware::InfraManager::Inventory::Persister
def inventory_collection_options
{
:targeted => true,
:strategy => :local_db_find_missing_references,
}
end
end

0 comments on commit 77b2209

Please sign in to comment.