
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>
Team and repository tags
Oslo Configuration Library
The Oslo configuration API supports parsing command line arguments and .ini style configuration files.
- License: Apache License, Version 2.0
- Documentation: https://docs.openstack.org/oslo.config/latest/
- Source: https://git.openstack.org/cgit/openstack/oslo.config
- Bugs: https://bugs.launchpad.net/oslo.config
- Release notes: https://docs.openstack.org/releasenotes/oslo.config/
Description
Languages
Python
99.8%
Shell
0.2%