diff options
| author | Russell Bryant <rbryant@redhat.com> | 2012-08-15 17:08:15 -0400 |
|---|---|---|
| committer | Russell Bryant <rbryant@redhat.com> | 2012-08-16 12:03:01 -0400 |
| commit | ea54ad3dd2053404cb2fbbaa1a3613a5dece6345 (patch) | |
| tree | fdc626eed7eb698b0b1f17e8ff6d7987539640f0 /nova/console | |
| parent | 574a78f066da5032c53069bc7a8be8fe14ea9d04 (diff) | |
| download | nova-ea54ad3dd2053404cb2fbbaa1a3613a5dece6345.tar.gz nova-ea54ad3dd2053404cb2fbbaa1a3613a5dece6345.tar.xz nova-ea54ad3dd2053404cb2fbbaa1a3613a5dece6345.zip | |
Fix use of non-existant var pool.
This code was using pool, but this variable did not exist. It was
erroneously removed in f50ce35c9cf2e05d205485586da1cb6d5433ba56.
This patch fixes the bug, as well as introduces unit tests for this API
that would have caught the problem.
Part of bug 1037183.
Change-Id: I0784aa314a0224198049dbcbe160084bdd1deee1
Diffstat (limited to 'nova/console')
| -rw-r--r-- | nova/console/api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/console/api.py b/nova/console/api.py index 32004094a..b974f4d93 100644 --- a/nova/console/api.py +++ b/nova/console/api.py @@ -43,7 +43,7 @@ class API(base.Base): def delete_console(self, context, instance_uuid, console_uuid): console = self.db.console_get(context, console_uuid, instance_uuid) topic = rpc.queue_get_for(context, FLAGS.console_topic, - pool['host']) + console['pool']['host']) rpcapi = console_rpcapi.ConsoleAPI(topic=topic) rpcapi.remove_console(context, console['id']) |
