Merge "Use "topics" instead of "topic" in Notifier initialization"

This commit is contained in:
Jenkins 2016-06-14 10:03:23 +00:00 committed by Gerrit Code Review
commit 3e01b27072

View File

@ -35,7 +35,7 @@ class AlarmNotifier(object):
messaging.get_transport(conf), messaging.get_transport(conf),
driver='messagingv2', driver='messagingv2',
publisher_id="alarming.evaluator", publisher_id="alarming.evaluator",
topic=conf.notifier_topic) topics=[conf.notifier_topic])
def notify(self, alarm, previous, reason, reason_data): def notify(self, alarm, previous, reason, reason_data):
actions = getattr(alarm, models.Alarm.ALARM_ACTIONS_MAP[alarm.state]) actions = getattr(alarm, models.Alarm.ALARM_ACTIONS_MAP[alarm.state])