From e10093c36b9fb72a2108739f99bb36063e679db9 Mon Sep 17 00:00:00 2001 From: Kamil Páral Date: Sep 08 2021 12:16:53 +0000 Subject: config: drop KOJI_URL It is not used anywhere, it's a remnant of removed code in a11c95b576. --- diff --git a/blockerbugs/__init__.py b/blockerbugs/__init__.py index 2f30e3a..8a9dd70 100644 --- a/blockerbugs/__init__.py +++ b/blockerbugs/__init__.py @@ -61,8 +61,7 @@ if os.getenv('DEBUG') == 'true': # Make sure config URLs end with a slash, so that we have them all in an # expected format -for key in ['BUGZILLA_URL', 'KOJI_URL', 'BODHI_URL', 'FAS_BASE_URL', - 'PAGURE_URL', 'PAGURE_API']: +for key in ['BUGZILLA_URL', 'BODHI_URL', 'FAS_BASE_URL', 'PAGURE_URL', 'PAGURE_API']: if not app.config[key].endswith('/'): app.config[key] = app.config[key] + '/' diff --git a/blockerbugs/config.py b/blockerbugs/config.py index 705f3b4..0dc9057 100644 --- a/blockerbugs/config.py +++ b/blockerbugs/config.py @@ -34,7 +34,6 @@ class Config(object): SQLALCHEMY_TRACK_MODIFICATIONS = False BUGZILLA_URL = 'https://bugzilla.stage.redhat.com/' BUGZILLA_XMLRPC = BUGZILLA_URL + 'xmlrpc.cgi' - KOJI_URL = 'http://koji.stg.fedoraproject.org/' BODHI_URL = 'https://bodhi.stg.fedoraproject.org/' FAS_ENABLED = False """When FAS is not enabled, a fake stub is used instead, which allows the user to log in (under @@ -85,7 +84,6 @@ class ProductionConfig(Config): DEBUG = False BUGZILLA_URL = 'https://bugzilla.redhat.com/' BUGZILLA_XMLRPC = BUGZILLA_URL + 'xmlrpc.cgi' - KOJI_URL = 'http://koji.fedoraproject.org/' BODHI_URL = 'https://bodhi.fedoraproject.org/' FAS_ENABLED = True FAS_HTTPS_REQUIRED = True diff --git a/conf/settings.py.example b/conf/settings.py.example index 35ddf83..267a329 100644 --- a/conf/settings.py.example +++ b/conf/settings.py.example @@ -8,7 +8,6 @@ FAS_USER = "magicuser@unicornsarereal.com" FAS_PASSWORD = "password" BUGZILLA_URL = 'https://bugzilla.stage.redhat.com/' BUGZILLA_XMLRPC = 'https://bugzilla.stage.redhat.com/xmlrpc.cgi' -KOJI_URL = 'http://koji.stg.fedoraproject.org/' BODHI_URL = 'https://admin.stg.fedoraproject.org/updates/' FILE_LOGGING = False LOGFILE = '/var/log/blockerbugs/blockerbugs.log'