From 72977d4e2b7fcc41241d5cf8565f28efcf564d56 Mon Sep 17 00:00:00 2001 From: ZhiQiang Fan Date: Wed, 6 May 2015 11:14:27 +0800 Subject: [PATCH] fix incorrect docstring for dispatcher The option name is dispatcher, but the examples in docstrings of dispatcher plugins name it as dispatchers, which is incorrect. Change-Id: I13dd5af4a137e34e73958458125dd5d3363c49ec --- ceilometer/dispatcher/database.py | 3 ++- ceilometer/dispatcher/file.py | 4 ++-- ceilometer/dispatcher/http.py | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ceilometer/dispatcher/database.py b/ceilometer/dispatcher/database.py index d78a189e6..87ee6778e 100644 --- a/ceilometer/dispatcher/database.py +++ b/ceilometer/dispatcher/database.py @@ -32,7 +32,8 @@ class DatabaseDispatcher(dispatcher.Base): To enable this dispatcher, the following section needs to be present in ceilometer.conf file - dispatchers = database + [DEFAULT] + dispatcher = database """ def __init__(self, conf): super(DatabaseDispatcher, self).__init__(conf) diff --git a/ceilometer/dispatcher/file.py b/ceilometer/dispatcher/file.py index cbe9da428..62a12d138 100644 --- a/ceilometer/dispatcher/file.py +++ b/ceilometer/dispatcher/file.py @@ -48,8 +48,8 @@ class FileDispatcher(dispatcher.Base): To enable this dispatcher, the following section needs to be present in ceilometer.conf file - [collector] - dispatchers = file + [DEFAULT] + dispatcher = file """ def __init__(self, conf): diff --git a/ceilometer/dispatcher/http.py b/ceilometer/dispatcher/http.py index bb9f41c10..6f1abda2c 100755 --- a/ceilometer/dispatcher/http.py +++ b/ceilometer/dispatcher/http.py @@ -53,7 +53,8 @@ class HttpDispatcher(dispatcher.Base): To enable this dispatcher, the following option needs to be present in ceilometer.conf file:: - dispatchers = http + [DEFAULT] + dispatcher = http Dispatcher specific options can be added as follows::