From 2a1a6adc16fac29ae58ae64b01664e3174627b5a Mon Sep 17 00:00:00 2001 From: liusheng Date: Mon, 13 Jun 2016 16:30:08 +0800 Subject: [PATCH] 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 --- aodh/queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aodh/queue.py b/aodh/queue.py index 658c07dab..2a4db881c 100644 --- a/aodh/queue.py +++ b/aodh/queue.py @@ -35,7 +35,7 @@ class AlarmNotifier(object): messaging.get_transport(conf), driver='messagingv2', publisher_id="alarming.evaluator", - topic=conf.notifier_topic) + topics=[conf.notifier_topic]) def notify(self, alarm, previous, reason, reason_data): actions = getattr(alarm, models.Alarm.ALARM_ACTIONS_MAP[alarm.state])