Merge "Remove deprecated oslo_messaging.get_transport"

This commit is contained in:
Jenkins
2017-06-14 13:13:34 +00:00
committed by Gerrit Code Review
2 changed files with 4 additions and 5 deletions

View File

@@ -53,11 +53,10 @@ JsonPayloadSerializer = messaging.JsonPayloadSerializer
def init(conf):
global TRANSPORT, NOTIFICATION_TRANSPORT, NOTIFIER
exmods = get_allowed_exmods()
TRANSPORT = messaging.get_transport(conf,
allowed_remote_exmods=exmods)
TRANSPORT = messaging.get_rpc_transport(
conf, allowed_remote_exmods=exmods)
NOTIFICATION_TRANSPORT = messaging.get_notification_transport(
conf,
allowed_remote_exmods=exmods)
conf, allowed_remote_exmods=exmods)
serializer = RequestContextSerializer(JsonPayloadSerializer())
if not conf.notification_level:

View File

@@ -210,7 +210,7 @@ class Service(service.ServiceBase):
@property
def transport(self):
if self._transport is None:
self._transport = om.get_transport(CONF)
self._transport = om.get_rpc_transport(CONF)
return self._transport
@property