Remove default=None when set value in Config

By default oslo.cfg sets the default values as None [1], there is
no need to explicitly do this.

[1] https://github.com/openstack/oslo.config/blob/master/oslo_config/cfg.py#L829

Change-Id: I5cba77d5502077e2323f4e86e0d29364eabf9c4c
This commit is contained in:
Jiong Liu 2016-09-27 21:39:59 +08:00
parent 74775fa5c2
commit 65d9ae4a8e
3 changed files with 0 additions and 3 deletions

View File

@ -81,7 +81,6 @@ def get_parser():
)
parser.add_argument(
'--alarm-id',
default=None,
type=str,
help='Only convert the alarm specified by this option.',
)

View File

@ -34,7 +34,6 @@ OPTS = [
help='Number of notification messages to wait before '
'dispatching them.'),
cfg.IntOpt('batch_timeout',
default=None,
help='Number of seconds to wait before dispatching samples '
'when batch_size is not reached (None means indefinitely).'),
]

View File

@ -35,7 +35,6 @@ OPTS = [
help='Number of notification messages to wait before '
'dispatching them.'),
cfg.IntOpt('batch_timeout',
default=None,
help='Number of seconds to wait before dispatching samples '
'when batch_size is not reached (None means indefinitely).'
),