mirror of
https://projects.torsion.org/witten/borgmatic.git
synced 2025-01-20 06:59:10 +00:00
9 lines
322 B
Python
9 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']
|