summaryrefslogtreecommitdiffstats
path: root/openstack
diff options
context:
space:
mode:
authorEric Windisch <eric@cloudscaling.com>2013-02-28 13:24:31 -0500
committerEric Windisch <eric@cloudscaling.com>2013-02-28 13:24:31 -0500
commitc4400ec172fe7a57cbf92dcdce365ddb1ab66bae (patch)
treea4fc098c9e4d7dc4fadecc5f255f2e0910eb3874 /openstack
parentd5a07c4306ea8f44aaab66d4553f37b90f88bb94 (diff)
downloadoslo-c4400ec172fe7a57cbf92dcdce365ddb1ab66bae.tar.gz
oslo-c4400ec172fe7a57cbf92dcdce365ddb1ab66bae.tar.xz
oslo-c4400ec172fe7a57cbf92dcdce365ddb1ab66bae.zip
Zmq notifier topic manip fix.
The ZeroMQ driver needs to manipulate the topic for notifications because the period is used as a delimiter internally. The code was already trying to perform this modification via topic.replace, but was not storing the result. Change-Id: I02a174dd96ff9181f6d7460fd41434ea05fb39d4
Diffstat (limited to 'openstack')
-rw-r--r--openstack/common/rpc/impl_zmq.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack/common/rpc/impl_zmq.py b/openstack/common/rpc/impl_zmq.py
index cf3fdc8..82e7e17 100644
--- a/openstack/common/rpc/impl_zmq.py
+++ b/openstack/common/rpc/impl_zmq.py
@@ -793,7 +793,7 @@ def notify(conf, context, topic, msg, **kwargs):
"""
# NOTE(ewindisch): dot-priority in rpc notifier does not
# work with our assumptions.
- topic.replace('.', '-')
+ topic = topic.replace('.', '-')
kwargs['envelope'] = kwargs.get('envelope', True)
cast(conf, context, topic, msg, **kwargs)