Merge "db: Replace use of update.values parameter"

This commit is contained in:
Zuul 2023-09-21 02:55:09 +00:00 committed by Gerrit Code Review
commit 05d8cafcbd
1 changed files with 2 additions and 4 deletions

View File

@ -40,9 +40,7 @@ def upgrade():
'metadef_resource_types', meta, autoload_with=bind)
op.execute(
resource_types_table.update(
values={'name': 'OS::Nova::Server'},
).where(
resource_types_table.update().where(
resource_types_table.c.name == 'OS::Nova::Instance'
)
).values(name='OS::Nova::Server')
)