# License for the specific language governing permissions and limitations
# under the License.
-import oslo_config.cfg
+from oslo_config import cfg
from oslo_utils import importutils
-_compute_opts = [
- oslo_config.cfg.StrOpt('compute_api_class',
- default='cinder.compute.nova.API',
- help='The full class name of the '
- 'compute API class to use'),
+compute_opts = [
+ cfg.StrOpt('compute_api_class',
+ default='cinder.compute.nova.API',
+ help='The full class name of the '
+ 'compute API class to use'),
]
-oslo_config.cfg.CONF.register_opts(_compute_opts)
+CONF = cfg.CONF
+CONF.register_opts(compute_opts)
def API():
- compute_api_class = oslo_config.cfg.CONF.compute_api_class
+ compute_api_class = CONF.compute_api_class
cls = importutils.import_class(compute_api_class)
return cls()