Browse Source

fixed bug with redis connection string (#67454)

<!-- Describe your PR here. -->
fixed bug with redis connection string

<!--

  Sentry employees and contractors can delete or ignore the following.

-->

### Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated
in the State of Delaware in 2015 as Functional Software, Inc. and is
gonna need some rights from me in order to utilize my contributions in
this here PR. So here's the deal: I retain all rights, title and
interest in and to my contributions, and by keeping this boilerplate
intact I confirm that Sentry can use, modify, copy, and redistribute my
contributions, under Sentry's choice of terms.

Co-authored-by: Alex Zaslavsky <azaslavsky@users.noreply.github.com>
igeni 11 months ago
parent
commit
20375041ec
1 changed files with 1 additions and 1 deletions
  1. 1 1
      self-hosted/sentry.conf.py

+ 1 - 1
self-hosted/sentry.conf.py

@@ -147,7 +147,7 @@ if rabbitmq:
         + (env("SENTRY_RABBITMQ_VHOST") or env("RABBITMQ_ENV_RABBITMQ_DEFAULT_VHOST") or "/")
     )
 else:
-    BROKER_URL = "redis://:" + redis_password + "@" + redis + ":" + redis_port + "/" + redis_db
+    BROKER_URL = f"redis://{redis_password}@{redis}:{redis_port}/{redis_db}"
 
 
 ###############