summaryrefslogtreecommitdiff
path: root/nova/conf/opts.py
Commit message (Collapse)AuthorAgeFilesLines
* conf: Make list->dict conversion more specificStephen Finucane2016-09-141-11/+0
| | | | | | | | | | | | All of the Nova configuration options' 'list_opts' functions have been updated to return dicts rather than lists of tuples. However, two dependency libraries still return dicts. Replace the general handling code for this with specific code in the two offending places. This gives a more actionable resolution. Blueprint centralize-config-options-ocata Change-Id: I5ce9ac2037e4374215a96e09e12b0873c31dd27e
* Fix docstrings for sphinxAndreas Jaeger2016-01-241-2/+3
| | | | | | | | | | | Sphinx complains about: docstring of nova.conf.opts:5: ERROR: Unexpected indentation. docstring of nova.conf.opts:8: WARNING: Block quote ends without a blank line; unexpected unindent. doc/source/threading.rst:34: WARNING: Literal block ends without a blank line; unexpected unindent. Fix these problems. Change-Id: I023487445b21891e9488a5f6eef9f89f9cecade0
* nova conf single point of entry: fix error messageMarkus Zoeller2016-01-131-1/+1
| | | | | | | | | | | | | | | The order of the tuple items for the error message was wrong. The result is a error message like "Exception: The module 'nova.conf.list_opts' should have a 'volume' function which returns the config options." This patch sets the correct order to get the correct message: "Exception: The module 'nova.conf.volume' should have a 'list_opts' function which returns the config options." Change-Id: I31a0a5b861f16abc5f5c6431f2a9556372a3c6e2
* single point of entry for sample config generationMarkus Zoeller2016-01-081-0/+89
To create a "nova.conf.sample" file, we use "tox -e genconfig". This command triggers the generator from "oslo.config" which needs entry points in "setup.cfg". Right now we have multiple entry points to "opts.py" files which are going to be consolidated to one single point of entry "nova/conf/opts.py". Until all config options are moved to that central place, we would often face merge conflicts when multiple contributors commit patches to that one "opts.py". To prevent that, and to make it easier for future config option moduls in "nova/conf/", the new "nova/conf/opts.py" module collects the config options in a dynamic way. Co-Author: EdLeafe <ed@leafe.com> bp centralize-config-options Change-Id: I4e5d643cd93bb2822ff59c71669cedf3de7f86fc