Merge "Use "topics" instead of "topic" in Notifier initialization"
This commit is contained in:
commit
3e01b27072
@ -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])
|
||||||
|
Loading…
Reference in New Issue
Block a user