generated default List ConfigType ignores bounds
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.config |
Fix Released
|
Undecided
|
Brian Rosmaita |
Bug Description
The List ConfigType has a 'bounds' option to indicate whether brackets are required when the value is specified. The generated default value, however, does not pay attention to the 'bounds' option, and as a result the sample output is confusing.
For example, glance/
cfg.
List of enabled Image Import Methods
Both 'glance-direct' and 'web-download' are enabled by default.
Related options:
* [DEFAULT]
* [DEFAULT]
This shows up in the generated file like this:
#
# List of enabled Image Import Methods
#
# Both 'glance-direct' and 'web-download' are enabled by default.
#
# Related options:
# * [DEFAULT]
# * [DEFAULT]
#enabled_
If the operator uncomments this setting, a ValueError('Value should start with "["') is raised when the config file is loaded. It would be better if the default value displayed respected the 'bounds' setting, given that the reader of the config file has no way to know that bounds are required without reading the code (or by trial and error).
Changed in oslo.config: | |
assignee: | nobody → Brian Rosmaita (brian-rosmaita) |
Fix proposed to branch: master /review. openstack. org/560716
Review: https:/