]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Migrate manage script needs import of db session module
authorMichael Kerrin <michael.kerrin@hp.com>
Tue, 27 Aug 2013 10:48:45 +0000 (10:48 +0000)
committerMichael Kerrin <michael.kerrin@hp.com>
Tue, 27 Aug 2013 11:36:13 +0000 (11:36 +0000)
This import looks like it is not used but importing this module as
the side effect of defining the olso configuration. Without it the
script will not work.

Change-Id: Id65f726f34aa2fb86fda13fd65e2e512b3a899ac

cinder/db/sqlalchemy/migrate_repo/manage.py

index 546ecf462e67f15c3c169f26cf5555535279c678..741b69ebfd12df3f3f9cf84eda4d50cda85357d5 100644 (file)
@@ -23,6 +23,7 @@ from cinder.openstack.common import gettextutils
 gettextutils.install('cinder', lazy=True)
 
 from cinder.db.sqlalchemy import migrate_repo
+import cinder.openstack.common.db.sqlalchemy.session
 from cinder import version
 
 from migrate.versioning.shell import main