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)
| 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 | """ |