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: I6d940c89a2dc580996a3f4dd308c483b0e43589b
This commit is contained in:
Vu Cong Tuan 2017-06-06 11:52:52 +07:00
parent e75f3bd343
commit b56fe27192
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ def main():
default_config_files=config.find_config_files())
logging.setup(CONF, 'join')
transport = oslo_messaging.get_transport(CONF)
transport = oslo_messaging.get_notification_transport(CONF)
targets = [oslo_messaging.Target(topic=CONF.notifications_topic)]
endpoints = [NotificationEndpoint()]