From 3834ad61d1bd4e074a841e9fb685819707e1dcbd Mon Sep 17 00:00:00 2001 From: Marco Perosa Date: Fri, 12 Aug 2022 20:13:38 -0400 Subject: [PATCH] Set proper default for RabbitMQ Management API URL The code was changed in the course of the 0.9 release to use the same port as the broker for the broker_api, which doesn't work in any scenario. Let's revert it back to the default port of 15672. --- flower/utils/broker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flower/utils/broker.py b/flower/utils/broker.py index c255962a5..4ee73349c 100644 --- a/flower/utils/broker.py +++ b/flower/utils/broker.py @@ -50,7 +50,7 @@ def __init__(self, broker_url, http_api, io_loop=None, **kwargs): self.password = self.password or 'guest' if not http_api: - http_api = "http://{username}:{password}@{host}:{port}/api/{vhost}".format( + http_api = "http://{username}:{password}@{host}:15672/api/{vhost}".format( username=self.username, password=self.password, host=self.host, port=self.port, vhost=self.vhost )