Remove usage of oslo.messaging deprecated transport method.

Since few months oslo.messaging project have deprecated
the get_transport method from the transport layer module.

Move get_transport to get_rpc_transport.

Change-Id: I32db30fafe9ea465ae658d9a51dcbe81d8451e88
This commit is contained in:
Hervé Beraud 2019-02-13 16:57:44 +01:00
parent 4cb9e19120
commit 99e429fc45
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,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,
aliases=_ALIASES)
except oslo_messaging.InvalidTransportURL as e:
if not optional or e.url: