From 9ee389d10f663218c3d5fe59886263f643a8a468 Mon Sep 17 00:00:00 2001
From: Maciej Pawel Szymanski <maciej.szymanski@cern.ch>
Date: Mon, 2 May 2022 11:28:27 +0200
Subject: [PATCH] workaround for flower service in openshift

---
 lb/nightly/rpc/__init__.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lb/nightly/rpc/__init__.py b/lb/nightly/rpc/__init__.py
index 8181681..9c42cfa 100644
--- a/lb/nightly/rpc/__init__.py
+++ b/lb/nightly/rpc/__init__.py
@@ -29,8 +29,8 @@ try:
     backend_url = conf.get("mysql", {}).get("url")
 except AttributeError:
     logging.warning("Broker and Backend not specified, the results will not be kept")
-    broker_url = "amqp://guest:guest@rabbitmq:5672"
-    backend_url = "rpc"
+    broker_url = os.environ.get("BROKER_URL", "amqp://guest:guest@rabbitmq:5672")
+    backend_url = os.environ.get("BACKEND_URL", "rpc")
 
 app = Celery(
     __name__,
-- 
GitLab