Fix for failing services on py3 with kombu driver

Change-Id: I41f6cfbbe965cc1430b8711de6a09f99c9ca011e
Closes-bug: 1661201
This commit is contained in:
Dawid Deja
2017-02-08 12:01:41 +01:00
parent 83992b2155
commit a2856b10e9

View File

@@ -32,7 +32,7 @@ class KombuRPCListener(ConsumerMixin):
self._connections = itertools.cycle(connections)
self._callback_queue = callback_queue
self._thread = None
self.connection = self._connections.next()
self.connection = six.next(self._connections)
# TODO(ddeja): Those 2 options should be gathered from config.
self._sleep_time = 1