mirror of
https://github.com/quay/quay.git
synced 2026-01-26 06:21:37 +03:00
18 lines
430 B
Python
18 lines
430 B
Python
import logging
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
|
class RepoMirrorConfigValidator(object):
|
|
"""
|
|
Helper class for validating the repository mirror configuration.
|
|
"""
|
|
|
|
def __init__(self, feature_repo_mirror):
|
|
self._feature_repo_mirror = feature_repo_mirror
|
|
|
|
def valid(self):
|
|
if not self._feature_repo_mirror:
|
|
raise Exception("REPO_MIRROR feature not enabled")
|
|
return True
|