From 48a75809a6292eb9937bacd47203df2844dfb8fc Mon Sep 17 00:00:00 2001 From: rajat29 Date: Thu, 8 Jun 2017 09:43:35 +0530 Subject: [PATCH] Use get_rpc_transport instead of get_transport With the added get_rpc_transport() function in oslo.messaging [1] and the recent version bump of oslo.messaging to 5.24.2, we can safely replace get_transport() with get_rpc_transport() which is much cleaner. [1] https://review.openstack.org/#/c/454194/ Related-Bug: #1680192 Change-Id: I6b2ee043048bc380c4dd75638817f8152617ce09 --- manila/rpc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manila/rpc.py b/manila/rpc.py index d32f825769..936d594bfa 100644 --- a/manila/rpc.py +++ b/manila/rpc.py @@ -47,8 +47,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)