From 513ea649be9fd652b0c5b391167f851bc3d653bb Mon Sep 17 00:00:00 2001 From: Rodolfo Alonso Hernandez Date: Wed, 17 May 2023 12:12:06 +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: I71f59da65edc163aa5891cf0b0d9768d2538b7a7 --- .../newton/contract/4cf8bc3edb66_rename_tenant_to_project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron_dynamic_routing/db/migration/alembic_migrations/versions/newton/contract/4cf8bc3edb66_rename_tenant_to_project.py b/neutron_dynamic_routing/db/migration/alembic_migrations/versions/newton/contract/4cf8bc3edb66_rename_tenant_to_project.py index ebd00a07..c1177c3b 100644 --- a/neutron_dynamic_routing/db/migration/alembic_migrations/versions/newton/contract/4cf8bc3edb66_rename_tenant_to_project.py +++ b/neutron_dynamic_routing/db/migration/alembic_migrations/versions/newton/contract/4cf8bc3edb66_rename_tenant_to_project.py @@ -106,7 +106,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'])