diff options
author | Doug Hellmann <doug@doughellmann.com> | 2016-02-10 15:29:26 -0500 |
---|---|---|
committer | Doug Hellmann <doug@doughellmann.com> | 2016-02-10 15:29:26 -0500 |
commit | 85a67996e71c4763e9ddb997190506a075f76041 (patch) | |
tree | 5350ab4120aee8705122a8e840370fb124f4c346 | |
parent | 029f0966b2fbd8a66d0561d4927ef47b5f67ac3f (diff) | |
download | oslo-db-85a67996e71c4763e9ddb997190506a075f76041.tar.gz |
stop making a copy of options discovered by config generator
In order for the config generator's new hook for updating default values
to work, we have to return the same Opt objects from list_opts() that
our set_defaults() function is going to modify. There's no real need to
be making copies of the objects anyway, so just stop doing it.
Change-Id: I62c2f733f1e7943449aa744ed15dac4addb3e1f7
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
-rw-r--r-- | oslo_db/options.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/oslo_db/options.py b/oslo_db/options.py index 5d8f74c..38e9024 100644 --- a/oslo_db/options.py +++ b/oslo_db/options.py @@ -10,8 +10,6 @@ # License for the specific language governing permissions and limitations # under the License. -import copy - from oslo_config import cfg @@ -219,4 +217,4 @@ def list_opts(): :returns: a list of (group_name, opts) tuples """ - return [('database', copy.deepcopy(database_opts))] + return [('database', database_opts)] |