File 0001-Use-ensure_connection-to-allow-broker-failover.patch of Package python-kombu
rom 816e3dcf346decd4d458e2a088ac7a914b48dcce Mon Sep 17 00:00:00 2001
From: georgepsarakis <giwrgos.psarakis@gmail.com>
Date: Wed, 19 Apr 2017 22:00:36 +0300
Subject: [PATCH] Use ensure_connection to allow broker failover
---
kombu/connection.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: kombu-3.0.35/kombu/connection.py
===================================================================
--- kombu-3.0.35.orig/kombu/connection.py
+++ kombu-3.0.35/kombu/connection.py
@@ -754,7 +754,7 @@ class Connection(object):
"""
# make sure we're still connected, and if not refresh.
- self.connection
+ self.ensure_connection()
if self._default_channel is None:
self._default_channel = self.channel()
return self._default_channel