We need to import cinder.common.config wherever we are using an olso
configuration option from this module. Otherwise it is not necessarily
the case that olso knows about the option and it complains.
cinder.tests imports this configuration module but it not the case that
this module has been imported when you you are running individual tests.
Change-Id: I8f2c966848f55c80213d2ecd2dbf75b777627e6b
Fixes: bug #1203737
# collisions with use of 'from cinder.backup import <foo>' elsewhere.
-from oslo.config import cfg
-
+from cinder.common import config
import cinder.openstack.common.importutils
-CONF = cfg.CONF
+CONF = config.CONF
API = cinder.openstack.common.importutils.import_class(CONF.backup_api_class)
# collisions with use of 'from cinder.volume import <foo>' elsewhere.
-from oslo.config import cfg
-
+from cinder.common import config
import cinder.openstack.common.importutils as import_utils
-CONF = cfg.CONF
+CONF = config.CONF
API = import_utils.import_class(CONF.volume_api_class)