diff options
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/compute/contrib/__init__.py | 11 | ||||
| -rw-r--r-- | nova/api/openstack/compute/extensions.py | 11 |
2 files changed, 18 insertions, 4 deletions
diff --git a/nova/api/openstack/compute/contrib/__init__.py b/nova/api/openstack/compute/contrib/__init__.py index ec09ae941..7b21a0be8 100644 --- a/nova/api/openstack/compute/contrib/__init__.py +++ b/nova/api/openstack/compute/contrib/__init__.py @@ -25,9 +25,16 @@ from nova.api.openstack import extensions from nova.openstack.common import cfg from nova.openstack.common import log as logging - +ext_opts = [ + cfg.ListOpt('osapi_compute_ext_list', + default=[], + help='Specify list of extensions to load when using osapi_' + 'compute_extension option with nova.api.openstack.' + 'compute.contrib.select_extensions'), +] CONF = cfg.CONF -CONF.import_opt('osapi_compute_ext_list', 'nova.config') +CONF.register_opts(ext_opts) + LOG = logging.getLogger(__name__) diff --git a/nova/api/openstack/compute/extensions.py b/nova/api/openstack/compute/extensions.py index d3c31daca..1d0738417 100644 --- a/nova/api/openstack/compute/extensions.py +++ b/nova/api/openstack/compute/extensions.py @@ -20,10 +20,17 @@ from nova.openstack.common import cfg from nova.openstack.common import log as logging from nova.openstack.common.plugin import pluginmanager +ext_opts = [ + cfg.MultiStrOpt('osapi_compute_extension', + default=[ + 'nova.api.openstack.compute.contrib.standard_extensions' + ], + help='osapi compute extension to load'), +] +CONF = cfg.CONF +CONF.register_opts(ext_opts) LOG = logging.getLogger(__name__) -CONF = cfg.CONF -CONF.import_opt('osapi_compute_extension', 'nova.config') class ExtensionManager(base_extensions.ExtensionManager): |
