Replace oslo.messaging.get_transport with get_notification_transport

DeprecationWarning: Using function/method 'oslo_messaging.get_transport()'
is deprecated: use get_rpc_transport or get_notification_transport

Change-Id: I908f06a9ae3d474d52365eb140a95604e8e0f721
This commit is contained in:
Vu Cong Tuan 2017-06-06 14:28:25 +07:00
parent b5eac43161
commit b68dbf7381
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ def init_from_conf(conf, context, project, service, host):
kwargs = {}
if connection_str.startswith("messaging"):
kwargs = {"messaging": oslo_messaging,
"transport": oslo_messaging.get_transport(conf)}
"transport": oslo_messaging.get_notification_transport(conf)}
_notifier = notifier.create(
connection_str,
context=context,