summaryrefslogtreecommitdiff
path: root/ceilometer/notification.py
diff options
context:
space:
mode:
authorliusheng <liusheng@huawei.com>2016-06-13 16:20:13 +0800
committerliusheng <liusheng@huawei.com>2016-06-13 16:24:47 +0800
commitf99cedf11fd1c7d7dab930e8b83659f5cb789895 (patch)
tree019c7f8320a1d76422e04a21193a45f62d200a36 /ceilometer/notification.py
parent726f24334dde0c1740a37bce6905b96124becba1 (diff)
downloadceilometer-f99cedf11fd1c7d7dab930e8b83659f5cb789895.tar.gz
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: If41b0aa4f9afc90d049063bf509723c3a8295db7
Diffstat (limited to 'ceilometer/notification.py')
-rw-r--r--ceilometer/notification.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ceilometer/notification.py b/ceilometer/notification.py
index 1c87843b..c33e536b 100644
--- a/ceilometer/notification.py
+++ b/ceilometer/notification.py
@@ -116,7 +116,7 @@ class NotificationService(service_base.PipelineBasedService):
transport,
driver=cfg.CONF.publisher_notifier.telemetry_driver,
publisher_id=pipe.name,
- topic='%s-%s-%s' % (self.NOTIFICATION_IPC, pipe.name, x)))
+ topics=['%s-%s-%s' % (self.NOTIFICATION_IPC, pipe.name, x)]))
return notifiers
def _get_pipe_manager(self, transport, pipeline_manager):