Change parameter topic
Oslo.messaging has deprecated topic for long time and used topics instead. Change-Id: Ie7c96dcdf1418c63d55041dc30eb4befa2e04c83
This commit is contained in:
parent
7d451e6113
commit
5d287b916d
@ -57,6 +57,6 @@ class EventApis(EntityGraphApisBase):
|
||||
get_transport(self.conf),
|
||||
driver='messagingv2',
|
||||
publisher_id=self.publisher,
|
||||
topic='vitrage_notifications')
|
||||
topics=['vitrage_notifications'])
|
||||
except Exception as e:
|
||||
LOG.info('Failed to initialize oslo notifier %s', str(e))
|
||||
|
@ -54,7 +54,7 @@ class VitrageNotifier(CollectDPlugin):
|
||||
self.notifier = messaging.Notifier(transport,
|
||||
driver='messagingv2',
|
||||
publisher_id='collectd',
|
||||
topic='vitrage_notifications')
|
||||
topics=['vitrage_notifications'])
|
||||
self.add_notification_callback(self.notify)
|
||||
|
||||
def notify(self, notification):
|
||||
|
@ -74,7 +74,7 @@ def main():
|
||||
notifier = messaging.Notifier(transport,
|
||||
driver=driver,
|
||||
publisher_id=publisher,
|
||||
topic='vitrage_notifications')
|
||||
topics=['vitrage_notifications'])
|
||||
|
||||
alarm_status = args.topic.lower()
|
||||
event_type = '%s.%s' % (ZABBIX_EVENT_TYPE, alarm_status)
|
||||
|
@ -39,7 +39,7 @@ class GraphNotifier(object):
|
||||
get_transport(conf),
|
||||
driver='messagingv2',
|
||||
publisher_id='vitrage.graph',
|
||||
topic=topic)
|
||||
topics=[topic])
|
||||
except Exception as e:
|
||||
LOG.info('Graph Notifier - missing configuration %s' % str(e))
|
||||
|
||||
|
@ -64,7 +64,7 @@ class VitrageNotifier(object):
|
||||
transport,
|
||||
driver='messagingv2',
|
||||
publisher_id=publisher_id,
|
||||
topic=topic)
|
||||
topics=[topic])
|
||||
|
||||
def notify(self, event_type, data):
|
||||
LOG.debug('notify : ' + event_type + ' ' + str(data))
|
||||
|
Loading…
x
Reference in New Issue
Block a user