MCPcopy Index your code
hub / github.com/saltstack/salt / update_intervals

Method update_intervals

salt/utils/gitfs.py:3594–3606  ·  view source on GitHub ↗

Returns a dictionary mapping remote IDs to their intervals, designed to be used for variable update intervals in salt.master.FileserverUpdate. A remote's ID is defined here as a tuple of the GitPython/Pygit2 object's "id" and "name" attributes, with None being assum

(self)

Source from the content-addressed store, hash-verified

3592 pass
3593
3594 def update_intervals(self):
3595 """
3596 Returns a dictionary mapping remote IDs to their intervals, designed to
3597 be used for variable update intervals in salt.master.FileserverUpdate.
3598
3599 A remote's ID is defined here as a tuple of the GitPython/Pygit2
3600 object's "id" and "name" attributes, with None being assumed as the
3601 "name" value if the attribute is not present.
3602 """
3603 return {
3604 (repo.id, getattr(repo, "name", None)): repo.update_interval
3605 for repo in self.remotes
3606 }
3607
3608 def verify_provider(self):
3609 """

Callers 1

fill_bucketsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected