From 65abe9d20c7e09f2b474cd35f2e4c892c6fedd4c Mon Sep 17 00:00:00 2001 From: David Ripton Date: Mon, 11 Feb 2013 13:22:47 -0500 Subject: Fix unconsumed column name warning in test_migrations. The warning is "SAWarning: Unconsumed column names: aggregate_name" There is no column aggregate_name in the aggregates table. Change-Id: I3b92b3429ac3e020b9ab3f7ce10c73a4e4b93187 --- nova/tests/test_migrations.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nova/tests/test_migrations.py b/nova/tests/test_migrations.py index 02d7462d2..e9b82ec9c 100644 --- a/nova/tests/test_migrations.py +++ b/nova/tests/test_migrations.py @@ -385,14 +385,13 @@ class TestMigrations(test.TestCase): def _prerun_146(self, engine): data = { 'availability_zone': 'custom_az', - 'aggregate_name': 1, 'name': 'name', } aggregates = get_table(engine, 'aggregates') result = aggregates.insert().values(data).execute() # NOTE(sdague) it's important you don't insert keys by value in - # postgresql, because it's autoincrement counter won't get updated + # postgresql, because its autoincrement counter won't get updated data['id'] = result.inserted_primary_key[0] return data -- cgit