summaryrefslogtreecommitdiff
path: root/nova/manager.py
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2012-11-17 22:50:21 +0000
committerMark McLoughlin <markmc@redhat.com>2012-11-20 00:04:49 +0000
commite237c86446ba4ecba95cf65a2609733707aab68e (patch)
treee6a7ae4235de5faaf6f0cae383fe126b3cf5dd0b /nova/manager.py
parent94d87bce212f91c54370784a5544f1a07625938a (diff)
downloadnova-e237c86446ba4ecba95cf65a2609733707aab68e.tar.gz
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
Diffstat (limited to 'nova/manager.py')
-rw-r--r--nova/manager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/manager.py b/nova/manager.py
index 59da6155ae..044d5f8cbe 100644
--- a/nova/manager.py
+++ b/nova/manager.py
@@ -55,7 +55,6 @@ This module provides Manager, a base class for managers.
import eventlet
-from nova import config
from nova.db import base
from nova.openstack.common import cfg
from nova.openstack.common import log as logging
@@ -65,6 +64,7 @@ from nova.scheduler import rpcapi as scheduler_rpcapi
from nova import version
CONF = cfg.CONF
+CONF.import_opt('host', 'nova.config')
LOG = logging.getLogger(__name__)