Use "topics" instead of "topic" in Notifier initialization
The "topic" parameter of the __init__method of Notifier has been deprecated and will be removed. see change[1]. [1] Id89957411aa219cff92fafec2f448c81cb57b3ca Change-Id: Id9bd23b8dce911714c0e2738ff5eb5e97221bdce
This commit is contained in:
parent
77238e3367
commit
2a1a6adc16
@ -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…
x
Reference in New Issue
Block a user