]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix oslo.config.cfg.NoSuchOptError when running individual tests
authorMichael Kerrin <michael.kerrin@hp.com>
Mon, 22 Jul 2013 13:35:37 +0000 (13:35 +0000)
committerMichael Kerrin <michael.kerrin@hp.com>
Tue, 23 Jul 2013 09:12:20 +0000 (09:12 +0000)
commit546ed2dc498e1182859ebab19a3459e49bbe48ca
treecfa2b753091340faa85457aa76255852ac90ac1f
parentfd8c67944f6471c0ea1cc1f0c178511308335dbc
Fix oslo.config.cfg.NoSuchOptError when running individual tests

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
cinder/backup/__init__.py
cinder/volume/__init__.py