diff options
author | Mark McLoughlin <markmc@redhat.com> | 2012-11-17 22:50:21 +0000 |
---|---|---|
committer | Mark McLoughlin <markmc@redhat.com> | 2012-11-20 00:04:49 +0000 |
commit | e237c86446ba4ecba95cf65a2609733707aab68e (patch) | |
tree | e6a7ae4235de5faaf6f0cae383fe126b3cf5dd0b /nova/scheduler/driver.py | |
parent | 94d87bce212f91c54370784a5544f1a07625938a (diff) | |
download | nova-e237c86446ba4ecba95cf65a2609733707aab68e.tar.gz nova-e237c86446ba4ecba95cf65a2609733707aab68e.tar.xz nova-e237c86446ba4ecba95cf65a2609733707aab68e.zip |
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/scheduler/driver.py')
-rw-r--r-- | nova/scheduler/driver.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/nova/scheduler/driver.py b/nova/scheduler/driver.py index 6c6beb5e9..e7c51c477 100644 --- a/nova/scheduler/driver.py +++ b/nova/scheduler/driver.py @@ -28,7 +28,6 @@ from nova.compute import power_state from nova.compute import rpcapi as compute_rpcapi from nova.compute import utils as compute_utils from nova.compute import vm_states -from nova import config from nova import db from nova import exception from nova import notifications @@ -54,8 +53,7 @@ scheduler_driver_opts = [ CONF = cfg.CONF CONF.register_opts(scheduler_driver_opts) - -CONF = cfg.CONF +CONF.import_opt('compute_topic', 'nova.config') CONF.import_opt('instances_path', 'nova.compute.manager') CONF.import_opt('libvirt_type', 'nova.virt.libvirt.driver') |