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:
parent
74775fa5c2
commit
65d9ae4a8e
@ -81,7 +81,6 @@ def get_parser():
|
|||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--alarm-id',
|
'--alarm-id',
|
||||||
default=None,
|
|
||||||
type=str,
|
type=str,
|
||||||
help='Only convert the alarm specified by this option.',
|
help='Only convert the alarm specified by this option.',
|
||||||
)
|
)
|
||||||
|
@ -34,7 +34,6 @@ OPTS = [
|
|||||||
help='Number of notification messages to wait before '
|
help='Number of notification messages to wait before '
|
||||||
'dispatching them.'),
|
'dispatching them.'),
|
||||||
cfg.IntOpt('batch_timeout',
|
cfg.IntOpt('batch_timeout',
|
||||||
default=None,
|
|
||||||
help='Number of seconds to wait before dispatching samples '
|
help='Number of seconds to wait before dispatching samples '
|
||||||
'when batch_size is not reached (None means indefinitely).'),
|
'when batch_size is not reached (None means indefinitely).'),
|
||||||
]
|
]
|
||||||
|
@ -35,7 +35,6 @@ OPTS = [
|
|||||||
help='Number of notification messages to wait before '
|
help='Number of notification messages to wait before '
|
||||||
'dispatching them.'),
|
'dispatching them.'),
|
||||||
cfg.IntOpt('batch_timeout',
|
cfg.IntOpt('batch_timeout',
|
||||||
default=None,
|
|
||||||
help='Number of seconds to wait before dispatching samples '
|
help='Number of seconds to wait before dispatching samples '
|
||||||
'when batch_size is not reached (None means indefinitely).'
|
'when batch_size is not reached (None means indefinitely).'
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user