fix: make check repositories work with dict and str repositories

This commit is contained in:
Divyansh Singh 2023-03-28 22:14:50 +05:30
parent 67a349ae44
commit 2d08a63e60

View file

@ -69,7 +69,7 @@ def apply_logical_validation(config_filename, parsed_configuration):
location_repositories = parsed_configuration.get('location', {}).get('repositories')
check_repositories = parsed_configuration.get('consistency', {}).get('check_repositories', [])
for repository in check_repositories:
if repository not in location_repositories:
if not any(repositories_match(repository, config_repository) for config_repository in location_repositories):
raise Validation_error(
config_filename,
(