diff --git a/pagure/lib/__init__.py b/pagure/lib/__init__.py index b092f0a..293f3c8 100644 --- a/pagure/lib/__init__.py +++ b/pagure/lib/__init__.py @@ -48,7 +48,7 @@ from pagure.lib import model REDIS = None - +PAGURE_CI = None def set_redis(host, port, db): """ Set the redis connection with the specified information. """ @@ -56,6 +56,10 @@ def set_redis(host, port, db): pool = redis.ConnectionPool(host=host, port=port, db=db) REDIS = redis.StrictRedis(connection_pool=pool) +def set_pagure_ci(services): + """ Set the list of CI services supported by this pagure instance. """ + PAGURE_CI = services + def __get_user(session, key): """ Searches for a user in the database for a given username or email.