Merge "Fix the deprecated usage of "get_transport""

This commit is contained in:
Zuul 2017-12-07 12:16:52 +00:00 committed by Gerrit Code Review
commit 45f6dba502
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ class VitrageNotifier(CollectDPlugin):
"""Set up the Vitrage API client and add the notification callback. """
url = self.config['transport_url']
transport = messaging.get_transport(cfg.CONF, url)
transport = messaging.get_notification_transport(cfg.CONF, url)
self.notifier = messaging.Notifier(transport,
driver='messagingv2',
publisher_id=COLLECTD_DATASOURCE,

View File

@ -66,7 +66,7 @@ def main():
args.sendto, args.topic, args.body)
transport_url = args.sendto
transport = messaging.get_transport(cfg.CONF, transport_url)
transport = messaging.get_notification_transport(cfg.CONF, transport_url)
driver = 'messagingv2'
publisher = 'zabbix_%s' % socket.gethostname()
notifier = messaging.Notifier(transport,