OpenStack library for config
Go to file
Doug Hellmann b79f763b49 ensure we do not modify private data from drivers
When we ask for a list of options from a drivere for generating the
sample config or documentation, we want to insert the actual 'driver'
option at the front of the list. This keeps each driver from having to
do that, and allows us to generate the sample with good
defaults. However, if a driver returns us a static data structure, we
do not want to modify *that* set of data, because the driver tests
will need the original structure intact. So, have list_opts() deepcopy
the data it is given, again to avoid having to ensure each driver
author does that copy.

This change also requires updating the test for list_opts() for the
URI driver to no longer assume the 'driver' option will be in the
results. At the same time I am reordering the arguments to
assertEqual() so that the expected value is listed first and renaming
the variable holding the actual values from the discovery call.

Change-Id: Ie8c1bc606f5f69a72b2383200a40b26e252067a9
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-07-17 12:35:13 -04:00
.zuul.d add a job to run unit tests against the lower bounds of our dependencies 2018-03-24 21:02:20 -04:00
doc Merge "User guide documentation for backend drivers for oslo.config" 2018-07-16 23:31:43 +00:00
oslo_config ensure we do not modify private data from drivers 2018-07-17 12:35:13 -04:00
releasenotes Optionally use oslo.log for deprecated opt logging 2018-06-21 14:50:47 +00:00
.coveragerc Fix coverage configuration and execution 2015-10-05 17:20:49 -04:00
.gitignore Add * to .coverage in .gitignore 2016-04-12 17:19:12 +00:00
.gitreview Rename oslo-config to oslo.config. 2013-03-14 12:04:19 -07:00
.testr.conf Upgrade testing to use testr. 2013-05-03 17:26:07 -04:00
CONTRIBUTING.rst trivial change to contributing instructions 2018-02-19 09:51:56 -05:00
HACKING.rst Update URLs in documents according to document migration 2017-07-12 22:32:03 +08:00
LICENSE Add LICENSE file 2013-02-17 09:25:32 +00:00
README.rst Add release notes link to README 2018-06-21 13:15:22 +08:00
bindep.txt Add bindep.txt file to prevent fallback to generic list 2018-03-20 10:26:47 -05:00
lower-constraints.txt Merge "Add config_source option" 2018-07-13 16:08:32 +00:00
requirements.txt Add config_source option 2018-06-25 10:17:12 +02:00
setup.cfg Add config_source option 2018-06-25 10:17:12 +02:00
setup.py Updated from global requirements 2017-03-03 00:02:50 +00:00
test-requirements.txt Merge "Add config_source option" 2018-07-13 16:08:32 +00:00
tox.ini tox: Fix typo 2018-06-18 12:33:08 +01:00

README.rst

Team and repository tags

image

Oslo Configuration Library

Latest Version

Downloads

The Oslo configuration API supports parsing command line arguments and .ini style configuration files.