remove default=None for config options

In the cfg module default=None is set as the default value. It's not
necessary to set it again when defining config options.

Change-Id: Ib7f8e0ffa5ef082e3588686b02500cf975736293
Closes-Bug: #1323975
This commit is contained in:
ZhiQiang Fan 2014-06-12 10:17:11 +08:00
parent 2f9288eae1
commit b52e6fcb6c
4 changed files with 2 additions and 8 deletions

View File

@ -34,10 +34,8 @@ dogtag_crypto_plugin_group = cfg.OptGroup(name='dogtag_crypto_plugin',
title="Dogtag Crypto Plugin Options")
dogtag_crypto_plugin_opts = [
cfg.StrOpt('pem_path',
default=None,
help=u._('Path to PEM file for authentication')),
cfg.StrOpt('pem_password',
default=None,
help=u._('Password to unlock PEM file')),
cfg.StrOpt('drm_host',
default="localhost",
@ -46,10 +44,8 @@ dogtag_crypto_plugin_opts = [
default="8443",
help=u._('Port for the DRM')),
cfg.StrOpt('nss_db_path',
default=None,
help=u._('Path to the NSS certificate database')),
cfg.StrOpt('nss_password',
default=None,
help=u._('Password for NSS certificate database'))
]

View File

@ -33,10 +33,8 @@ p11_crypto_plugin_group = cfg.OptGroup(name='p11_crypto_plugin',
title="PKCS11 Crypto Plugin Options")
p11_crypto_plugin_opts = [
cfg.StrOpt('library_path',
default=None,
help=u._('Path to vendor PKCS11 library')),
cfg.StrOpt('login',
default=None,
help=u._('Password to login to PKCS11 session'))
]
CONF.register_group(p11_crypto_plugin_group)

View File

@ -33,7 +33,7 @@ LOG = utils.getLogger(__name__)
db_opts = [
cfg.StrOpt('sql_connection', default=None),
cfg.StrOpt('sql_connection'),
]
CONF = cfg.CONF

View File

@ -54,7 +54,7 @@ db_opts = [
cfg.IntOpt('sql_max_retries', default=60),
cfg.IntOpt('sql_retry_interval', default=1),
cfg.BoolOpt('db_auto_create', default=True),
cfg.StrOpt('sql_connection', default=None),
cfg.StrOpt('sql_connection'),
cfg.IntOpt('max_limit_paging', default=100),
cfg.IntOpt('default_limit_paging', default=10),
]