diff options
author | Eric Windisch <eric@cloudscaling.com> | 2013-02-28 13:24:31 -0500 |
---|---|---|
committer | Eric Windisch <eric@cloudscaling.com> | 2013-02-28 13:24:31 -0500 |
commit | c4400ec172fe7a57cbf92dcdce365ddb1ab66bae (patch) | |
tree | a4fc098c9e4d7dc4fadecc5f255f2e0910eb3874 /openstack | |
parent | d5a07c4306ea8f44aaab66d4553f37b90f88bb94 (diff) | |
download | oslo-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.py | 2 |
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) |