forked from ManageIQ/manageiq-providers-openshift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ManageIQ#104 from Ladas/allow_proper_targeted_refresh
Switch to proper targeted refresh
- Loading branch information
Showing
1 changed file
with
3 additions
and
9 deletions.
There are no files selected for viewing
12 changes: 3 additions & 9 deletions
12
app/models/manageiq/providers/openshift/inventory/persister/target_collection.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
class ManageIQ::Providers::Openshift::Inventory::Persister::TargetCollection < ManageIQ::Providers::Openshift::Inventory::Persister::ContainerManager | ||
def targeted? | ||
false # TODO(lsmola) get ready for true, which means a proper targeted refresh. That will require more effort. | ||
true | ||
end | ||
|
||
def shared_options | ||
{ | ||
:targeted => targeted?, | ||
:complete => false, # For now, we want to a only create and update elements using watches data, delete events could | ||
# probably set finished_at and deleted_on dates, as an update based disconnect_inv. | ||
:strategy => :local_db_find_references, # By default no IC will be saved | ||
:parent => manager.presence | ||
} | ||
def strategy | ||
:local_db_find_missing_references | ||
end | ||
end |