Switch to using get_notification_listner

Change-Id: Ied7acaeed6edde17d2d6f073c304021e22811409
Closes-bug: #1570127
(cherry picked from commit 776a4ce2c0)
This commit is contained in:
Angus Salkeld 2016-04-14 10:38:22 +10:00 committed by Kirill Zaitsev
parent e283fb3aaf
commit 5386c40d75
1 changed files with 4 additions and 5 deletions

View File

@ -17,7 +17,6 @@ import uuid
from oslo_config import cfg
from oslo_log import log as logging
import oslo_messaging as messaging
from oslo_messaging.notify import dispatcher as oslo_dispatcher
from oslo_messaging import target
from oslo_service import service
from oslo_utils import timeutils
@ -228,10 +227,10 @@ class NotificationService(Service):
transport = messaging.get_transport(CONF)
s_target = target.Target(topic='murano', server=str(uuid.uuid4()))
dispatcher = oslo_dispatcher.NotificationDispatcher(
[s_target], endpoints, None, True)
self.server = messaging.MessageHandlingServer(
transport, dispatcher, 'eventlet')
self.server = messaging.get_notification_listener(
transport, [s_target], endpoints, executor='eventlet')
self.server.start()
super(NotificationService, self).start()