summaryrefslogtreecommitdiffstats
path: root/openstack/common/rpc/service.py
diff options
context:
space:
mode:
authorKiall Mac Innes <kiall@managedit.ie>2012-10-02 16:13:16 +0100
committerKiall Mac Innes <kiall@managedit.ie>2012-10-02 16:13:56 +0100
commit0f009cce6c2e82f212b17fc5e98ef463d38af4a2 (patch)
treeda4142204078bed22bc29dbc3574f9018812a506 /openstack/common/rpc/service.py
parentb590f7bc067329c7e096a8961084b84667b1d49f (diff)
downloadoslo-0f009cce6c2e82f212b17fc5e98ef463d38af4a2.tar.gz
oslo-0f009cce6c2e82f212b17fc5e98ef463d38af4a2.tar.xz
oslo-0f009cce6c2e82f212b17fc5e98ef463d38af4a2.zip
Fix missing import of `rpc.dispatcher` in `rpc.service`
Change-Id: I7bdd5fbff1addef4a855aa72f3551930630299f5
Diffstat (limited to 'openstack/common/rpc/service.py')
-rw-r--r--openstack/common/rpc/service.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/openstack/common/rpc/service.py b/openstack/common/rpc/service.py
index 0c0255c..e572956 100644
--- a/openstack/common/rpc/service.py
+++ b/openstack/common/rpc/service.py
@@ -20,6 +20,7 @@
from openstack.common.gettextutils import _
from openstack.common import log as logging
from openstack.common import rpc
+from openstack.common.rpc import dispatcher as rpc_dispatcher
from openstack.common import service
@@ -46,15 +47,15 @@ class Service(service.Service):
LOG.debug(_("Creating Consumer connection for Service %s") %
self.topic)
- rpc_dispatcher = rpc.dispatcher.RpcDispatcher([self.manager])
+ dispatcher = rpc_dispatcher.RpcDispatcher([self.manager])
# Share this same connection for these Consumers
- self.conn.create_consumer(self.topic, rpc_dispatcher, fanout=False)
+ self.conn.create_consumer(self.topic, dispatcher, fanout=False)
node_topic = '%s.%s' % (self.topic, self.host)
- self.conn.create_consumer(node_topic, rpc_dispatcher, fanout=False)
+ self.conn.create_consumer(node_topic, dispatcher, fanout=False)
- self.conn.create_consumer(self.topic, rpc_dispatcher, fanout=True)
+ self.conn.create_consumer(self.topic, dispatcher, fanout=True)
# Consume from all consumers in a thread
self.conn.consume_in_thread()