]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Change oslo.* to oslo_*
authorAnish Bhatt <anish@chelsio.com>
Tue, 3 Feb 2015 21:19:40 +0000 (13:19 -0800)
committerAnish Bhatt <anish@chelsio.com>
Thu, 5 Feb 2015 01:36:54 +0000 (17:36 -0800)
Change oslo.db to oslo_db
Change oslo.config to olso_config
Change oslo.rootwrap to oslo_rootwrap

The oslo libraries are moving away from namespace packages.

Partial-bug: 1409733

Change-Id: I3429282afa2db4c0b3aa630eb3a0eaece04405ed

cinder/compute/__init__.py
setup.cfg
tools/config/oslo.config.generator.rc

index 21a94f826c48fff8e85c16b453b800f11e1ce8a9..96f73b897af05e2164db2ee6750353cd7c4444d5 100644 (file)
 #    License for the specific language governing permissions and limitations
 #    under the License.
 
-import oslo.config.cfg
+import oslo_config.cfg
 from oslo_utils import importutils
 
 
 _compute_opts = [
-    oslo.config.cfg.StrOpt('compute_api_class',
+    oslo_config.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)
+oslo_config.cfg.CONF.register_opts(_compute_opts)
 
 
 def API():
-    compute_api_class = oslo.config.cfg.CONF.compute_api_class
+    compute_api_class = oslo_config.cfg.CONF.compute_api_class
     cls = importutils.import_class(compute_api_class)
     return cls()
index 4a72a101f6a09b3369d70426509a1105da7f09f6..9c56be70f41c947ee0e9bff811684be393f65cca 100644 (file)
--- a/setup.cfg
+++ b/setup.cfg
@@ -47,7 +47,7 @@ console_scripts =
     cinder-api = cinder.cmd.api:main
     cinder-backup = cinder.cmd.backup:main
     cinder-manage = cinder.cmd.manage:main
-    cinder-rootwrap = oslo.rootwrap.cmd:main
+    cinder-rootwrap = oslo_rootwrap.cmd:main
     cinder-rtstool = cinder.cmd.rtstool:main
     cinder-scheduler = cinder.cmd.scheduler:main
     cinder-volume = cinder.cmd.volume:main
@@ -61,7 +61,7 @@ oslo.messaging.notify.drivers =
     cinder.openstack.common.notifier.test_notifier = oslo.messaging.notify._impl_test:TestDriver
 
 cinder.database.migration_backend =
-    sqlalchemy = oslo.db.sqlalchemy.migration
+    sqlalchemy = oslo_db.sqlalchemy.migration
 
 [build_sphinx]
 all_files = 1
index d17957ef4f6c652f10196a26f403d5ac2df3499c..47b7d3bb636ce66dd6f5ed937496f87e66a3d3a7 100644 (file)
@@ -1,2 +1,2 @@
 export CINDER_CONFIG_GENERATOR_EXTRA_MODULES="keystonemiddleware.auth_token"
-export CINDER_CONFIG_GENERATOR_EXTRA_LIBRARIES="oslo.messaging oslo.db oslo.db.concurrency"
+export CINDER_CONFIG_GENERATOR_EXTRA_LIBRARIES="oslo.messaging oslo_db oslo.db.concurrency"