Commit 9f2abcfa authored by Qiaowei Ren's avatar Qiaowei Ren

remove default=None for config options

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

Change-Id: I1cacfb21da3f0b8510d76767f9de2f81a8a88063
parent 2bd126bb
...@@ -59,7 +59,6 @@ OPTS = [ ...@@ -59,7 +59,6 @@ OPTS = [
POLLING_OPTS = [ POLLING_OPTS = [
cfg.StrOpt('partitioning_group_prefix', cfg.StrOpt('partitioning_group_prefix',
default=None,
deprecated_group='central', deprecated_group='central',
help='Work-load partitioning group prefix. Use only if you ' help='Work-load partitioning group prefix. Use only if you '
'want to run multiple polling agents with different ' 'want to run multiple polling agents with different '
......
...@@ -27,7 +27,6 @@ LOG = log.getLogger(__name__) ...@@ -27,7 +27,6 @@ LOG = log.getLogger(__name__)
OPTS = [ OPTS = [
cfg.StrOpt('backend_url', cfg.StrOpt('backend_url',
default=None,
help='The backend URL to use for distributed coordination. If ' help='The backend URL to use for distributed coordination. If '
'left empty, per-deployment central agent and per-host ' 'left empty, per-deployment central agent and per-host '
'compute agent won\'t do workload ' 'compute agent won\'t do workload '
......
...@@ -52,7 +52,6 @@ dispatcher_opts = [ ...@@ -52,7 +52,6 @@ dispatcher_opts = [
deprecated_for_removal=True, deprecated_for_removal=True,
help='URL to Gnocchi. default: autodetection'), help='URL to Gnocchi. default: autodetection'),
cfg.StrOpt('archive_policy', cfg.StrOpt('archive_policy',
default=None,
help='The archive policy to use when the dispatcher ' help='The archive policy to use when the dispatcher '
'create a new metric.'), 'create a new metric.'),
cfg.StrOpt('resources_definition_file', cfg.StrOpt('resources_definition_file',
......
...@@ -51,12 +51,10 @@ OPTS = [ ...@@ -51,12 +51,10 @@ OPTS = [
"in the database for (<= 0 means forever).")), "in the database for (<= 0 means forever).")),
cfg.StrOpt('metering_connection', cfg.StrOpt('metering_connection',
secret=True, secret=True,
default=None,
help='The connection string used to connect to the metering ' help='The connection string used to connect to the metering '
'database. (if unset, connection is used)'), 'database. (if unset, connection is used)'),
cfg.StrOpt('event_connection', cfg.StrOpt('event_connection',
secret=True, secret=True,
default=None,
help='The connection string used to connect to the event ' help='The connection string used to connect to the event '
'database. (if unset, connection is used)'), 'database. (if unset, connection is used)'),
cfg.IntOpt('db2nosql_resource_id_maxlen', cfg.IntOpt('db2nosql_resource_id_maxlen',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment