Fix the deprecated usage of "get_transport"

As log says, 'oslo_messaging.transport.get_transport()' is deprecated.
The reference link of oslo_messaging is at [1].

[1] https://review.openstack.org/#/c/454194/

Change-Id: I919ba223c3687d553e937512fa649b8eb99c276e
This commit is contained in:
Guoqiang Ding 2017-12-05 21:42:08 +08:00
parent 8620c28651
commit 19c8f74915
1 changed files with 3 additions and 3 deletions

View File

@ -50,14 +50,14 @@ RPC_DISABLED = False
def init_action_rpc(conf):
global TRANSPORT
TRANSPORT = oslo_messaging.get_transport(conf)
TRANSPORT = oslo_messaging.get_rpc_transport(conf)
def init(conf):
global TRANSPORT, NOTIFICATION_TRANSPORT, NOTIFIER
exmods = get_allowed_exmods()
TRANSPORT = oslo_messaging.get_transport(conf,
allowed_remote_exmods=exmods)
TRANSPORT = oslo_messaging.get_rpc_transport(conf,
allowed_remote_exmods=exmods)
NOTIFICATION_TRANSPORT = oslo_messaging.get_notification_transport(
conf, allowed_remote_exmods=exmods)
serializer = RequestContextSerializer()