]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Update the migration template's default kwargs
authorMark McClain <mark.mcclain@dreamhost.com>
Tue, 8 Jan 2013 16:16:17 +0000 (11:16 -0500)
committerMark McClain <mark.mcclain@dreamhost.com>
Tue, 8 Jan 2013 16:16:17 +0000 (11:16 -0500)
fixes bug 1097327

The default template should accept options as a keyword instead of
specific quota parameter.

Change-Id: I65ceaccea9e764941a1d3f6ba243a2107379e42e

quantum/db/migration/alembic_migrations/script.py.mako

index 21cc9dc0fb072e3e2ef7eecbacb08b47e685fdbe..4a8bbb7b785630c7d76ca81e0c557ffdbfb75b62 100644 (file)
@@ -40,14 +40,14 @@ ${imports if imports else ""}
 from quantum.db import migration
 
 
-def upgrade(active_plugin=None, enable_db_quota=False):
+def upgrade(active_plugin=None, options=None):
     if not migration.should_run(active_plugin, migration_for_plugins):
         return
 
     ${upgrades if upgrades else "pass"}
 
 
-def downgrade(active_plugin=None, enable_db_quota=False):
+def downgrade(active_plugin=None, options=None):
     if not migration.should_run(active_plugin, migration_for_plugins):
         return