From c0ed9a9ec274a829150387acffcf4215ea3ecf37 Mon Sep 17 00:00:00 2001 From: Van Hung Pham Date: Tue, 13 Jun 2017 14:21:54 +0700 Subject: [PATCH] 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: Ibf59ca7f7452dba94d8d60a66601bcd088a77593 --- cinder/rpc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cinder/rpc.py b/cinder/rpc.py index 27bdf5231ec..527ea8922b7 100644 --- a/cinder/rpc.py +++ b/cinder/rpc.py @@ -55,8 +55,8 @@ EXTRA_EXMODS = [] 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)