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:
parent
8620c28651
commit
19c8f74915
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user