Config: no need to set default=None
By default oslo.cfg sets the default value as None. There is no need to explicitly do this. TrivialFix Change-Id: I69adadc2196a119eb0661ae7a7fd6af607e61689
This commit is contained in:
parent
097be4c967
commit
677f967e08
@ -36,15 +36,12 @@ from ceilometer import keystone_client
|
|||||||
|
|
||||||
API_OPTS = [
|
API_OPTS = [
|
||||||
cfg.BoolOpt('gnocchi_is_enabled',
|
cfg.BoolOpt('gnocchi_is_enabled',
|
||||||
default=None,
|
|
||||||
help=('Set True to disable resource/meter/sample URLs. '
|
help=('Set True to disable resource/meter/sample URLs. '
|
||||||
'Default autodetection by querying keystone.')),
|
'Default autodetection by querying keystone.')),
|
||||||
cfg.BoolOpt('aodh_is_enabled',
|
cfg.BoolOpt('aodh_is_enabled',
|
||||||
default=None,
|
|
||||||
help=('Set True to redirect alarms URLs to aodh. '
|
help=('Set True to redirect alarms URLs to aodh. '
|
||||||
'Default autodetection by querying keystone.')),
|
'Default autodetection by querying keystone.')),
|
||||||
cfg.StrOpt('aodh_url',
|
cfg.StrOpt('aodh_url',
|
||||||
default=None,
|
|
||||||
help=('The endpoint of Aodh to redirect alarms URLs '
|
help=('The endpoint of Aodh to redirect alarms URLs '
|
||||||
'to Aodh API. Default autodetection by querying '
|
'to Aodh API. Default autodetection by querying '
|
||||||
'keystone.')),
|
'keystone.')),
|
||||||
|
@ -42,7 +42,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)'),
|
||||||
]
|
]
|
||||||
|
@ -77,7 +77,6 @@ OPTS = [
|
|||||||
help='Number of notification messages to wait before '
|
help='Number of notification messages to wait before '
|
||||||
'publishing them'),
|
'publishing them'),
|
||||||
cfg.IntOpt('batch_timeout',
|
cfg.IntOpt('batch_timeout',
|
||||||
default=None,
|
|
||||||
help='Number of seconds to wait before publishing samples'
|
help='Number of seconds to wait before publishing samples'
|
||||||
'when batch_size is not reached (None means indefinitely)'),
|
'when batch_size is not reached (None means indefinitely)'),
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user