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:
parent
b5eac43161
commit
b68dbf7381
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue