Remove deprecated oslo_messaging.get_transport

DeprecationWarning:
Using function/method 'oslo_messaging.transport.get_transport()'
is deprecated: use get_rpc_transport or get_notification_transport.

Replace get_transport with get_rpc_transport.

Change-Id: I18eddf2cb1ae7f50f2c5c9ccf30b87cadc34d3a3
This commit is contained in:
Ngo Quoc Cuong 2017-06-07 10:09:22 +07:00
parent ae58f7f4e6
commit 578a76abd3
1 changed files with 1 additions and 2 deletions

View File

@ -47,8 +47,7 @@ EXTRA_EXMODS = []
def init(conf):
global 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)
serializer = RequestContextSerializer(JsonPayloadSerializer())
NOTIFIER = messaging.Notifier(TRANSPORT, serializer=serializer)