From c0fde4749964b1d071c687887f172d5321dc3470 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Wed, 28 May 2014 09:08:04 +0200 Subject: [PATCH] remove default=None for config options In the cfg module default=None is set as the default value. Change-Id: I5de0c1ddeeaccde8183ec130c85524f5b57f6f74 Closes-Bug: #1323975 --- oslo/messaging/_drivers/impl_zmq.py | 2 +- oslo/messaging/_drivers/matchmaker_redis.py | 1 - oslo/messaging/transport.py | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/oslo/messaging/_drivers/impl_zmq.py b/oslo/messaging/_drivers/impl_zmq.py index b8be8251e..210380afb 100644 --- a/oslo/messaging/_drivers/impl_zmq.py +++ b/oslo/messaging/_drivers/impl_zmq.py @@ -69,7 +69,7 @@ zmq_opts = [ cfg.IntOpt('rpc_zmq_contexts', default=1, help='Number of ZeroMQ contexts, defaults to 1.'), - cfg.IntOpt('rpc_zmq_topic_backlog', default=None, + cfg.IntOpt('rpc_zmq_topic_backlog', help='Maximum number of ingress messages to locally buffer ' 'per topic. Default is unlimited.'), diff --git a/oslo/messaging/_drivers/matchmaker_redis.py b/oslo/messaging/_drivers/matchmaker_redis.py index 220af65c2..d48955714 100644 --- a/oslo/messaging/_drivers/matchmaker_redis.py +++ b/oslo/messaging/_drivers/matchmaker_redis.py @@ -32,7 +32,6 @@ matchmaker_redis_opts = [ default=6379, help='Use this port to connect to redis host.'), cfg.StrOpt('password', - default=None, help='Password for Redis server (optional).'), ] diff --git a/oslo/messaging/transport.py b/oslo/messaging/transport.py index 590219468..51da01de7 100644 --- a/oslo/messaging/transport.py +++ b/oslo/messaging/transport.py @@ -37,7 +37,6 @@ from oslo.messaging import exceptions _transport_opts = [ cfg.StrOpt('transport_url', - default=None, help='A URL representing the messaging driver to use and its ' 'full configuration. If not set, we fall back to the ' 'rpc_backend option and driver specific configuration.'),