summaryrefslogtreecommitdiffstats
path: root/nova/db
diff options
context:
space:
mode:
authorRick Harris <rconradharris@gmail.com>2013-02-21 23:30:39 +0000
committerRick Harris <rconradharris@gmail.com>2013-02-21 23:30:39 +0000
commit9859a572dbfefc93de69a6fddb990060e08b24e1 (patch)
treeccfc166a1e356c934a8d8399965a66e14ec28cf8 /nova/db
parentcc6b5dd89d39876967c7a0fc0d1aae8c8f10e3ab (diff)
downloadnova-9859a572dbfefc93de69a6fddb990060e08b24e1.tar.gz
nova-9859a572dbfefc93de69a6fddb990060e08b24e1.tar.xz
nova-9859a572dbfefc93de69a6fddb990060e08b24e1.zip
Migration 146: Execute delete call.
The original code constructed but did not execute the call to delete the availability zone metadata records. The fix is to call `execute`. Change-Id: I3a5e2e7fd6e96b66b2073a35b55eec2002c6ae58
Diffstat (limited to 'nova/db')
-rw-r--r--nova/db/sqlalchemy/migrate_repo/versions/146_aggregate_zones.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/db/sqlalchemy/migrate_repo/versions/146_aggregate_zones.py b/nova/db/sqlalchemy/migrate_repo/versions/146_aggregate_zones.py
index 04f31ce5f..f1cfaf5c6 100644
--- a/nova/db/sqlalchemy/migrate_repo/versions/146_aggregate_zones.py
+++ b/nova/db/sqlalchemy/migrate_repo/versions/146_aggregate_zones.py
@@ -53,5 +53,6 @@ def downgrade(migrate_engine):
[aggregate_metadata.c.value]).where(aggregates.c.id ==
aggregate_metadata.c.aggregate_id).where(aggregate_metadata.c.key ==
'availability_zone')).execute()
- delete(aggregate_metadata, aggregate_metadata.c.key == 'availability_zone')
+ delete(aggregate_metadata,
+ aggregate_metadata.c.key == 'availability_zone').execute()
aggregates.c.availability_zone.alter(nullable=False)