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
This commit is contained in:
@@ -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.')), ]
|
||||
|
||||
Reference in New Issue
Block a user