Fix the depreciate warning of get_transport
Use get_rpc_transport instead of get_transport, because get_transport has been deprecate. Change-Id: Ied4c0291fb06907aae5130940549ec7892eaaaf7
This commit is contained in:
parent
3c8746f395
commit
a248d388d5
|
@ -40,7 +40,7 @@ def get_transport():
|
|||
global _TRANSPORT
|
||||
|
||||
if not _TRANSPORT:
|
||||
_TRANSPORT = messaging.get_transport(cfg.CONF)
|
||||
_TRANSPORT = messaging.get_rpc_transport(cfg.CONF)
|
||||
|
||||
return _TRANSPORT
|
||||
|
||||
|
|
Loading…
Reference in New Issue