From 85a67996e71c4763e9ddb997190506a075f76041 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Wed, 10 Feb 2016 15:29:26 -0500 Subject: 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 --- oslo_db/options.py | 4 +--- 1 file changed, 1 insertion(+), 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)] -- cgit v1.2.1