From e56445fc22392efacdc54b99d62835e87d825032 Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Mon, 26 May 2014 00:38:35 -0700 Subject: [PATCH] Remove redundant default=None for config options The cfg module sets the default values as None by default. There is no need to set this again. The default is set as None: http://docs.openstack.org/developer/oslo.config/opts.html#oslo.config.cfg.Opt Change-Id: I9c427fe8b76cf496e7aaf4c0451c7d8fe90e3bfb --- oslo/db/options.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/oslo/db/options.py b/oslo/db/options.py index 45a74bb7..126ec492 100644 --- a/oslo/db/options.py +++ b/oslo/db/options.py @@ -64,7 +64,6 @@ database_opts = [ help='Minimum number of SQL connections to keep open in a ' 'pool.'), cfg.IntOpt('max_pool_size', - default=None, deprecated_opts=[cfg.DeprecatedOpt('sql_max_pool_size', group='DEFAULT'), cfg.DeprecatedOpt('sql_max_pool_size', @@ -87,7 +86,6 @@ database_opts = [ group='DATABASE')], help='Interval between retries of opening a SQL connection.'), cfg.IntOpt('max_overflow', - default=None, deprecated_opts=[cfg.DeprecatedOpt('sql_max_overflow', group='DEFAULT'), cfg.DeprecatedOpt('sqlalchemy_max_overflow', @@ -106,7 +104,6 @@ database_opts = [ group='DEFAULT')], help='Add Python stack traces to SQL as comment strings.'), cfg.IntOpt('pool_timeout', - default=None, deprecated_opts=[cfg.DeprecatedOpt('sqlalchemy_pool_timeout', group='DATABASE')], help='If set, use this value for pool_timeout with '