summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Nemec <bnemec@redhat.com>2019-08-06 19:00:24 +0000
committerBen Nemec <bnemec@redhat.com>2019-08-06 19:00:24 +0000
commit39196a4e90f0d46f6b8122b2e421b519b9c6d93f (patch)
treef4423450209c3d86d02173d4ac346fd39184c4ca
parentdfc8fe9a8ff81ee45505a40ec161df9eb7f37c25 (diff)
downloadoslo-messaging-39196a4e90f0d46f6b8122b2e421b519b9c6d93f.tar.gz
Fix nits on kafka compression help text
There is no need to explicitly list the choices in the help text. The oslo.config sample generator will include the choices automatically[0] Also tweaks the wording of text to make it clear that it is the allowed values which vary based on kafka version. Change-Id: I4116e8871436097dea650f56e7b187358367d92e 0: https://github.com/openstack/oslo.config/blob/2488c1e1cee151a3a65c60f371f0bea2f15d4bca/oslo_config/generator.py#L263
-rw-r--r--oslo_messaging/_drivers/kafka_driver/kafka_options.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/oslo_messaging/_drivers/kafka_driver/kafka_options.py b/oslo_messaging/_drivers/kafka_driver/kafka_options.py
index 42c990c..c1b8bef 100644
--- a/oslo_messaging/_drivers/kafka_driver/kafka_options.py
+++ b/oslo_messaging/_drivers/kafka_driver/kafka_options.py
@@ -51,9 +51,9 @@ KAFKA_OPTS = [
cfg.StrOpt('compression_codec', default='none',
choices=['none', 'gzip', 'snappy', 'lz4', 'zstd'],
help='The compression codec for all data generated by the '
- 'producer. Valid values are: gzip, snappy, lz4, zstd. If '
- 'not set, compression will not be used. Note that the '
- 'legal option of this depends on the kafka version'),
+ 'producer. If not set, compression will not be used. '
+ 'Note that the allowed values of this depend on the kafka '
+ 'version'),
cfg.BoolOpt('enable_auto_commit',
default=False,