remove default=None for config options

In the cfg module default=None is set as the default value.

Change-Id: If4ae891bf5d098bb8b33804dcd5d3fb9826c594d
Closes-bug: #1323975
This commit is contained in:
Shuquan Huang 2015-11-08 20:19:09 +08:00
parent 341527c44f
commit 6993aacc6a
5 changed files with 2 additions and 8 deletions

View File

@ -42,14 +42,11 @@ _CINDER_OPTS = [
'catalog. Format is : separated values of the form: '
'<service_type>:<service_name>:<endpoint_type>'),
cfg.StrOpt('cinder_endpoint_template',
default=None,
help='Override service catalog lookup with template for cinder '
'endpoint e.g. http://localhost:8776/v1/%(project_id)s'),
cfg.StrOpt('os_region_name',
default=None,
help='Region name of this node'),
cfg.StrOpt('cinder_ca_certificates_file',
default=None,
help='Location of ca certicates file to use for cinder client '
'requests.'),
cfg.IntOpt('cinder_http_retries',

View File

@ -45,7 +45,7 @@ _GRIDFS_OPTS = [
"If host is an IPv6 literal it must be enclosed "
"in '[' and ']' characters following the RFC2732 "
"URL syntax (e.g. '[::1]' for localhost)"),
cfg.StrOpt('mongodb_store_db', default=None, help='Database to use'),
cfg.StrOpt('mongodb_store_db', help='Database to use'),
]

View File

@ -85,10 +85,8 @@ _S3_OPTS = [
cfg.IntOpt('s3_store_proxy_port', default=8080,
help=_('The port to use when connecting over a proxy.')),
cfg.StrOpt('s3_store_proxy_user',
default=None,
help=_('The username to connect to the proxy.')),
cfg.StrOpt('s3_store_proxy_password', secret=True,
default=None,
help=_('The password to use when connecting over a proxy.'))
]

View File

@ -62,7 +62,6 @@ _SWIFT_OPTS = [
'single tenant. This setting is only necessary if the '
'tenant has multiple swift endpoints.')),
cfg.StrOpt('swift_store_endpoint',
default=None,
help=_('If set, the configured endpoint will be used. If '
'None, the storage url from the auth response will be '
'used.')),

View File

@ -107,7 +107,7 @@ common_opts = [
help=_("Deploy the v1 OpenStack Images API.")),
cfg.BoolOpt('enable_v2_api', default=True,
help=_("Deploy the v2 OpenStack Images API.")),
cfg.StrOpt('pydev_worker_debug_host', default=None,
cfg.StrOpt('pydev_worker_debug_host',
help=_('The hostname/IP of the pydev process listening for '
'debug connections')),
cfg.IntOpt('pydev_worker_debug_port', default=5678,