borgmatic/borgmatic/config/checks.py
Dan Helfman ef448e2dd1
All checks were successful
continuous-integration/drone/push Build is passing
Add a "skip_actions" option to skip running particular actions (#701).
2023-10-31 21:54:41 -07:00

10 lines
322 B
Python

def repository_enabled_for_checks(repository, config):
'''
Given a repository name and a configuration dict, return whether the
repository is enabled to have consistency checks run.
'''
if not config.get('check_repositories'):
return True
return repository in config['check_repositories']