Fix fanout exchange name pattern
Change-Id: I0e3a85fe9bbd4a597b555302aa2c1c24045d2eec
This commit is contained in:
parent
a415bdfb91
commit
9cae182b49
@ -812,7 +812,9 @@ class RpcServicePikaListener(PikaListener):
|
|||||||
queue = '{}'.format(self._target.topic)
|
queue = '{}'.format(self._target.topic)
|
||||||
server_queue = '{}.{}'.format(queue, self._target.server)
|
server_queue = '{}.{}'.format(queue, self._target.server)
|
||||||
|
|
||||||
fanout_exchange = '{}_fanout'.format(self._target.topic)
|
fanout_exchange = '{}_fanout_{}'.format(
|
||||||
|
self._pika_engine.default_rpc_exchange, self._target.topic
|
||||||
|
)
|
||||||
|
|
||||||
queue_expiration = (
|
queue_expiration = (
|
||||||
self._pika_engine.conf.oslo_messaging_pika.rpc_queue_expiration
|
self._pika_engine.conf.oslo_messaging_pika.rpc_queue_expiration
|
||||||
@ -997,7 +999,9 @@ class PikaDriver(object):
|
|||||||
|
|
||||||
if target.fanout:
|
if target.fanout:
|
||||||
return msg.send(
|
return msg.send(
|
||||||
exchange='{}_fanout'.format(target.topic),
|
exchange='{}_fanout_{}'.format(
|
||||||
|
self._pika_engine.default_rpc_exchange, target.topic
|
||||||
|
),
|
||||||
timeout=timeout, confirm=True, mandatory=False,
|
timeout=timeout, confirm=True, mandatory=False,
|
||||||
retrier=retrier
|
retrier=retrier
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user