Skip to content

Commit

Permalink
Merge pull request #753 from agrare/improve_handling_wait_for_updates…
Browse files Browse the repository at this point in the history
…_timeout

Only parse and save if there are updates

(cherry picked from commit 2c467ab)
  • Loading branch information
Fryguy committed Feb 2, 2022
1 parent 5b04fc3 commit 149b666
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,14 @@ def full_refresh(vim, property_filter)
end

def targeted_refresh(vim, property_filter, version)
persister = targeted_persister_klass.new(ems)
parser = parser_klass.new(self, persister)

version, updated_objects = monitor_updates(vim, property_filter, version)
if updated_objects.any?
persister = targeted_persister_klass.new(ems)
parser = parser_klass.new(self, persister)

parse_updates(vim, parser, updated_objects)
save_inventory(persister)
parse_updates(vim, parser, updated_objects)
save_inventory(persister)
end

version
end
Expand Down

0 comments on commit 149b666

Please sign in to comment.