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. https://bugs.launchpad.net/cloud-archive/+bug/1714945 Related-Bug: #1714945 Change-Id: I66ed75902d43ae530328950cfbd06a9e8ea2d0f8 Related-Bug: #1714945
This commit is contained in:
parent
840c54f0d3
commit
b9b5314b97
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue