diff options
| author | Mark McLoughlin <markmc@redhat.com> | 2013-01-08 07:54:01 +0000 |
|---|---|---|
| committer | Mark McLoughlin <markmc@redhat.com> | 2013-01-09 08:15:43 +0000 |
| commit | 44cc0cda04cd20adf057eff76af0e6ba5ee0dcad (patch) | |
| tree | 799b398b10bbb1a08545bb4a8cde7a8a680e2dfd /nova/compute | |
| parent | 2803fd8d400b7d76138b2e2c152017a3d5e49685 (diff) | |
Move default_instance_type into nova.compute
Apart from the tests, this option is only used in
nova.compute.instance_types so move it there.
blueprint: scope-config-opts
Change-Id: Iadf4011739e50455b7ad4214a778a02e244fef35
Diffstat (limited to 'nova/compute')
| -rw-r--r-- | nova/compute/instance_types.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/nova/compute/instance_types.py b/nova/compute/instance_types.py index 6c4e9293c..a0819416c 100644 --- a/nova/compute/instance_types.py +++ b/nova/compute/instance_types.py @@ -30,8 +30,15 @@ from nova.openstack.common import cfg from nova.openstack.common import log as logging from nova import utils +instance_type_opts = [ + cfg.StrOpt('default_instance_type', + default='m1.small', + help='default instance type to use, testing only'), +] + CONF = cfg.CONF -CONF.import_opt('default_instance_type', 'nova.config') +CONF.register_opts(instance_type_opts) + LOG = logging.getLogger(__name__) INVALID_NAME_REGEX = re.compile("[^\w\.\- ]") |
