From 6b89fab7d7ac30a04bcac063a247b1e2a03b4ac7 Mon Sep 17 00:00:00 2001 From: deepakmourya Date: Wed, 7 Jun 2017 14:17:39 +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/ Change-Id: Ib7e204a40e88aecfbd9b024feefdc7aa45e943e2 --- barbican/queue/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/barbican/queue/__init__.py b/barbican/queue/__init__.py index d9ff8e38..91bac16b 100644 --- a/barbican/queue/__init__.py +++ b/barbican/queue/__init__.py @@ -46,7 +46,7 @@ def init(conf, is_server_side=True): global TRANSPORT, IS_SERVER_SIDE exmods = get_allowed_exmods() IS_SERVER_SIDE = is_server_side - TRANSPORT = messaging.get_transport(conf, allowed_remote_exmods=exmods) + TRANSPORT = messaging.get_rpc_transport(conf, allowed_remote_exmods=exmods) def is_server_side():