From e237c86446ba4ecba95cf65a2609733707aab68e Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Sat, 17 Nov 2012 22:50:21 +0000 Subject: Use CONF.import_opt() for nova.config opts The only reason for importing nova.config now is where one of the options defined in that file is needed. Rather than importing nova.config using an import statement, use CONF.import_opt() so that it is clear which option we actually require. In future, we will move many options out of nova.config so many of these import_opt() calls will either go away or cause a module other than nova.config to be imported. Change-Id: I0646efddecdf2530903afd50c1f4364cb1d5dce1 --- nova/consoleauth/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova/consoleauth') diff --git a/nova/consoleauth/manager.py b/nova/consoleauth/manager.py index b4747b1b1..910332633 100644 --- a/nova/consoleauth/manager.py +++ b/nova/consoleauth/manager.py @@ -20,7 +20,6 @@ import time -from nova import config from nova import manager from nova.openstack.common import cfg from nova.openstack.common import jsonutils @@ -40,6 +39,7 @@ consoleauth_opts = [ CONF = cfg.CONF CONF.register_opts(consoleauth_opts) +CONF.import_opt('memcached_servers', 'nova.config') class ConsoleAuthManager(manager.Manager): -- cgit