remove default=None for config options

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

Change-Id: I65786401354e5fb966339cbdb4a76f5f628b8d6f
Closes-Bug: #1323975
This commit is contained in:
lvdongbing 2014-06-11 21:29:14 +08:00
parent 1c4f604f96
commit d97eedd8eb
3 changed files with 1 additions and 4 deletions

View File

@ -135,8 +135,7 @@ def send_sample():
required=True), required=True),
cfg.StrOpt('sample-unit', cfg.StrOpt('sample-unit',
short='U', short='U',
help='Meter unit.', help='Meter unit.'),
default=None),
cfg.IntOpt('sample-volume', cfg.IntOpt('sample-volume',
short='l', short='l',
help='Meter volume value.', help='Meter volume value.',

View File

@ -24,7 +24,6 @@ from ceilometer import dispatcher
file_dispatcher_opts = [ file_dispatcher_opts = [
cfg.StrOpt('file_path', cfg.StrOpt('file_path',
default=None,
help='Name and the location of the file to record ' help='Name and the location of the file to record '
'meters.'), 'meters.'),
cfg.IntOpt('max_bytes', cfg.IntOpt('max_bytes',

View File

@ -35,7 +35,6 @@ STORAGE_ENGINE_NAMESPACE = 'ceilometer.storage'
OLD_STORAGE_OPTS = [ OLD_STORAGE_OPTS = [
cfg.StrOpt('database_connection', cfg.StrOpt('database_connection',
secret=True, secret=True,
default=None,
help='DEPRECATED - Database connection string.', help='DEPRECATED - Database connection string.',
), ),
] ]