2023-11-01 04:54:41 +00:00
|
|
|
def repository_enabled_for_checks(repository, config):
|
2018-10-14 03:34:51 +00:00
|
|
|
'''
|
2023-11-01 04:54:41 +00:00
|
|
|
Given a repository name and a configuration dict, return whether the
|
|
|
|
repository is enabled to have consistency checks run.
|
2018-10-14 03:34:51 +00:00
|
|
|
'''
|
2023-11-01 04:54:41 +00:00
|
|
|
if not config.get('check_repositories'):
|
2018-10-14 03:34:51 +00:00
|
|
|
return True
|
|
|
|
|
2023-11-01 04:54:41 +00:00
|
|
|
return repository in config['check_repositories']
|