From 960d5d493ecc70d759dcd71972dfc69729b948d2 Mon Sep 17 00:00:00 2001 From: Deklan Dieterly Date: Mon, 16 Nov 2015 16:11:33 -0700 Subject: [PATCH] Fix problem with type mismatch on Kafka config Fix type mismatch on partitions config parameter in Kafka config. Currently only supports one partition. In the future could remove this altogether or add support for multiple partitions. This became an issue because oslo.config was updated and began detecting this error. Change-Id: Ia17e2e70030c9dd22e93e6901dcd1d3db040d971 --- monasca_api/v2/reference/__init__.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/monasca_api/v2/reference/__init__.py b/monasca_api/v2/reference/__init__.py index e92cb3f37..1baedd028 100755 --- a/monasca_api/v2/reference/__init__.py +++ b/monasca_api/v2/reference/__init__.py @@ -106,9 +106,11 @@ kafka_opts = [cfg.StrOpt('uri', help='Address to kafka server. For example: ' 'If True, message will not be parsed, otherwise ' 'messages will be parsed.')), cfg.MultiOpt('partitions', item_type=types.Integer(), - default=[0], - help='The sleep time when no messages on kafka ' - 'queue.'), + default=0, + help='The partitions this connection should ' + 'listen for messages on. Currently does not ' + 'support multiple partitions. ' + 'Default is to listen on partition 0.'), cfg.BoolOpt('drop_data', default=False, help=( 'Specify if received data should be simply dropped. ' 'This parameter is only for testing purposes.')), ]