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:
junboli 2017-10-10 17:53:05 +08:00
parent 3c8746f395
commit a248d388d5
1 changed files with 1 additions and 1 deletions

View File

@ -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