summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Santa Barbara <justin@fathomdb.com>2011-03-08 22:45:06 +0000
committerTarmac <>2011-03-08 22:45:06 +0000
commitef86852df6cf75b996eeff85c367132fd8be5e23 (patch)
treed93e1bd74b4aa2b4ee98e6b948907f9f0db2917e
parentb238805d2ee9c19d3fb9b4dc43fa404630bdfaab (diff)
parent503fe37427247b2728051426d3c40266de69bd71 (diff)
downloadnova-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.py1
-rw-r--r--nova/network/api.py1
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