]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Add objects.register_all() to cinder-all command
authorMichal Dulko <michal.dulko@intel.com>
Thu, 13 Aug 2015 12:45:15 +0000 (14:45 +0200)
committerMichal Dulko <michal.dulko@intel.com>
Thu, 13 Aug 2015 13:15:15 +0000 (15:15 +0200)
In cmd/all.py registration of objects was missing. This caused running
cinder-all command to raise exceptions about unknown objects. Following
commit fixes this problem.

Closes-Bug: 1484533
Change-Id: Id7686bc801aaea30c1f7f24209044311656fa4cd

cinder/cmd/all.py

index f365ddc672d4ba7716df809359d44e052c67e992..945ee0c7b4a9942486ca9e2cd60ad5d76e880309 100644 (file)
@@ -39,6 +39,7 @@ i18n.enable_lazy()
 # Need to register global_opts
 from cinder.common import config   # noqa
 from cinder.i18n import _LE
+from cinder import objects
 from cinder import service
 from cinder import utils
 from cinder import version
@@ -48,6 +49,7 @@ CONF = cfg.CONF
 
 
 def main():
+    objects.register_all()
     CONF(sys.argv[1:], project='cinder',
          version=version.version_string())
     logging.setup(CONF, "cinder")