From 925b31f6fc7467535d76891b9c7b20815a22e0be Mon Sep 17 00:00:00 2001 From: Rodolfo Alonso Hernandez Date: Wed, 17 May 2023 12:13:05 +0200 Subject: [PATCH] [alembic] Alembic operations require keywords only arguments Since [1] (release 1.11.0), the Alembic operations "now enforce keyword-only arguments as passed as keyword and not positionally" (from the commit message). This change is compatible with the previous versions (as confirmed in the CI). [1]https://github.com/zzzeek/alembic/commit/df75e85489b9ae69fffff2c5ad2594b30bed2fd4 Closes-Bug: #2019948 Change-Id: Iedf9a47a80a2775f73e7873ce3e55c4152d0f564 --- .../newton/contract/f83a0b2964d0_rename_tenant_to_project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron_fwaas/db/migration/alembic_migrations/versions/newton/contract/f83a0b2964d0_rename_tenant_to_project.py b/neutron_fwaas/db/migration/alembic_migrations/versions/newton/contract/f83a0b2964d0_rename_tenant_to_project.py index d3a00104e..cb45304d1 100644 --- a/neutron_fwaas/db/migration/alembic_migrations/versions/newton/contract/f83a0b2964d0_rename_tenant_to_project.py +++ b/neutron_fwaas/db/migration/alembic_migrations/versions/newton/contract/f83a0b2964d0_rename_tenant_to_project.py @@ -111,7 +111,7 @@ def recreate_index(index, table_name): old_name = index['name'] new_name = old_name.replace('tenant', 'project') - op.drop_index(op.f(old_name), table_name) + op.drop_index(index_name=op.f(old_name), table_name=table_name) op.create_index(new_name, table_name, ['project_id'])