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:
liusheng 2016-06-13 16:30:08 +08:00
parent 77238e3367
commit 2a1a6adc16
1 changed files with 1 additions and 1 deletions

View File

@ -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])