From 2f9fdc0e9f4cacda51350ecbf3fbf7d5e0d32268 Mon Sep 17 00:00:00 2001 From: Anthony Young Date: Thu, 2 Feb 2012 23:28:24 +0000 Subject: Implements blueprint separate-nova-volumeapi [...] ** Removes flag osapi_extension and replaces with osapi_compute_extension and osapi_volume_extension [...] Change-Id: I4c2e57c3cafd4e1a9e2ff3ce201c8cf28326afcd --- openstack/common/cfg.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'openstack') diff --git a/openstack/common/cfg.py b/openstack/common/cfg.py index 34d5e6f..2562af4 100644 --- a/openstack/common/cfg.py +++ b/openstack/common/cfg.py @@ -32,14 +32,14 @@ Options can be strings, integers, floats, booleans, lists or 'multi strings': enabled_apis_opt = \ cfg.ListOpt('enabled_apis', - default=['ec2', 'osapi'], + default=['ec2', 'osapi_compute'], help='List of APIs to enable by default') DEFAULT_EXTENSIONS = [ 'nova.api.openstack.contrib.standard_extensions' ] - osapi_extension_opt = \ - cfg.MultiStrOpt('osapi_extension', + osapi_compute_extension_opt = \ + cfg.MultiStrOpt('osapi_compute_extension', default=DEFAULT_EXTENSIONS) Option schemas are registered with with the config manager at runtime, but @@ -55,7 +55,7 @@ before the option is referenced: ... def _load_extensions(self): - for ext_factory in self.conf.osapi_extension: + for ext_factory in self.conf.osapi_compute_extension: .... A common usage pattern is for each option schema to be defined in the module or -- cgit