diff options
author | Justin Santa Barbara <justin@fathomdb.com> | 2011-03-08 22:45:06 +0000 |
---|---|---|
committer | Tarmac <> | 2011-03-08 22:45:06 +0000 |
commit | ef86852df6cf75b996eeff85c367132fd8be5e23 (patch) | |
tree | d93e1bd74b4aa2b4ee98e6b948907f9f0db2917e | |
parent | b238805d2ee9c19d3fb9b4dc43fa404630bdfaab (diff) | |
parent | 503fe37427247b2728051426d3c40266de69bd71 (diff) | |
download | nova-ef86852df6cf75b996eeff85c367132fd8be5e23.tar.gz nova-ef86852df6cf75b996eeff85c367132fd8be5e23.tar.xz nova-ef86852df6cf75b996eeff85c367132fd8be5e23.zip |
Fix the bug where fakerabbit is doing a sort of prefix matching on the AMQP routing key
-rw-r--r-- | nova/fakerabbit.py | 1 | ||||
-rw-r--r-- | nova/network/api.py | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/nova/fakerabbit.py b/nova/fakerabbit.py index dd82a9366..a7dee8caf 100644 --- a/nova/fakerabbit.py +++ b/nova/fakerabbit.py @@ -48,7 +48,6 @@ class Exchange(object): nm = self.name LOG.debug(_('(%(nm)s) publish (key: %(routing_key)s)' ' %(message)s') % locals()) - routing_key = routing_key.split('.')[0] if routing_key in self._routes: for f in self._routes[routing_key]: LOG.debug(_('Publishing to route %s'), f) diff --git a/nova/network/api.py b/nova/network/api.py index bf43acb51..4ee1148cb 100644 --- a/nova/network/api.py +++ b/nova/network/api.py @@ -21,6 +21,7 @@ Handles all requests relating to instances (guest vms). """ from nova import db +from nova import exception from nova import flags from nova import log as logging from nova import quota |