diff --git a/apps/jumpserver/settings.py b/apps/jumpserver/settings.py index 2869bf7ed..ca8b63881 100644 --- a/apps/jumpserver/settings.py +++ b/apps/jumpserver/settings.py @@ -316,7 +316,7 @@ AUTH_LDAP_USER_ATTR_MAP = CONFIG.AUTH_LDAP_USER_ATTR_MAP # Celery using redis as broker BROKER_URL = 'redis://:%(password)s@%(host)s:%(port)s/3' % { - 'password': CONFIG.REDIS_PASSWORD + ':' if CONFIG.REDIS_PASSWORD else '', + 'password': CONFIG.REDIS_PASSWORD if CONFIG.REDIS_PASSWORD else '', 'host': CONFIG.REDIS_HOST or '127.0.0.1', 'port': CONFIG.REDIS_PORT or 6379, }