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: Iea7ed92aa481b5d1c016693a12b623887c4e86bb
This commit is contained in:
ritesh.arya 2017-06-30 17:37:16 +05:30 committed by Luka Peschke
parent 43e1999e9d
commit 66784899d6
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ def get_transport(url=None, optional=False, cache=True):
transport = TRANSPORTS.get(cache_key)
if not transport or not cache:
try:
transport = oslo_messaging.get_transport(cfg.CONF, url)
transport = oslo_messaging.get_rpc_transport(cfg.CONF, url)
except (oslo_messaging.InvalidTransportURL,
oslo_messaging.DriverLoadFailure):
if not optional or url:

View File

@ -20,7 +20,7 @@ oslo.concurrency>=3.5.0 # Apache-2.0
oslo.db>=4.1.0 # Apache-2.0
oslo.i18n>=2.1.0 # Apache-2.0
oslo.log>=1.14.0 # Apache-2.0
oslo.messaging>=5.11.0 # Apache-2.0
oslo.messaging!=5.25.0,>=5.24.2 # Apache-2.0
oslo.middleware>=3.0.0 # Apache-2.0
oslo.policy>=0.5.0 # Apache-2.0
oslo.utils>=3.5.0 # Apache-2.0