1
0
mirror of https://github.com/quay/quay.git synced 2026-01-26 06:21:37 +03:00
Files
quay/util/repomirror/validator.py
Jonathan King 304087f9c9 cleanup: Remove old validation code (PROJQUAY-4606) (#1562)
- The old validation code is no longer used and can be removed from Quay
2022-10-24 11:02:14 -07:00

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