Repository URL to install this package:
|
Version:
6.1.1.dev2 ▾
|
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2013 TrilioData, Inc.
# All Rights Reserved.
import oslo_config.cfg
# Importing full names to not pollute the namespace and cause possible
# collisions with use of 'from workloadmgr.volume import <foo>' elsewhere.
import workloadmgr.openstack.common.importutils
_barbican_opts = [
oslo_config.cfg.StrOpt('barbican_api_class',
default='workloadmgr.keymanager.barbican.API',
help='The full class name of the '
'volume API class to use'),
]
oslo_config.cfg.CONF.register_opts(_barbican_opts)
def API():
importutils = workloadmgr.openstack.common.importutils
barbican_api_class = oslo_config.cfg.CONF.barbican_api_class
cls = importutils.import_class(barbican_api_class)
return cls()