From d6c86be052e6c64a84d08f71830ec63a662bb9ad Mon Sep 17 00:00:00 2001 From: Mark McClain Date: Tue, 8 Jan 2013 11:16:17 -0500 Subject: [PATCH] Update the migration template's default kwargs 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quantum/db/migration/alembic_migrations/script.py.mako b/quantum/db/migration/alembic_migrations/script.py.mako index 21cc9dc0fb..4a8bbb7b78 100644 --- a/quantum/db/migration/alembic_migrations/script.py.mako +++ b/quantum/db/migration/alembic_migrations/script.py.mako @@ -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