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]
@@ -50,13 +50,13 @@ 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,
+ TRANSPORT = oslo_messaging.get_rpc_transport(conf,
allowed_remote_exmods=exmods)
NOTIFICATION_TRANSPORT = oslo_messaging.get_notification_transport(
conf, allowed_remote_exmods=exmods)
