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: I0154b6e59453fc0057da7d81f6e33fa192c9126b
This commit is contained in:
Ngo Quoc Cuong 2017-06-09 15:42:53 +07:00
parent 83c7506076
commit aec1009943
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ class TestMessagingSetup(base.SaharaTestCase):
self.get_notify_transport = get_notif_transp_patch.start()
self.patchers.append(get_notif_transp_patch)
get_transport_patch = mock.patch('oslo_messaging.get_transport')
get_transport_patch = mock.patch('oslo_messaging.get_rpc_transport')
self.get_transport = get_transport_patch.start()
self.patchers.append(get_transport_patch)

View File

@ -95,7 +95,7 @@ def setup_service_messaging():
if MESSAGING_TRANSPORT:
# Already is up
return
MESSAGING_TRANSPORT = messaging.get_transport(cfg.CONF)
MESSAGING_TRANSPORT = messaging.get_rpc_transport(cfg.CONF)
def setup_notifications():