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
2016-04-12 17:19:12 +00:00
2013-03-14 12:04:19 -07:00
2013-05-03 17:26:07 -04:00
2013-02-17 09:25:32 +00:00
2018-06-21 13:15:22 +08:00
2018-06-25 10:17:12 +02:00
2018-06-25 10:17:12 +02:00
2017-03-03 00:02:50 +00:00
2018-06-18 12:33:08 +01:00

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.

Description
OpenStack library for config
Readme 12 MiB
Languages
Python 99.8%
Shell 0.2%