From 3419feff16e1974aa353188eee11609fc786148d Mon Sep 17 00:00:00 2001 From: termie Date: Wed, 12 Jan 2011 19:38:27 -0800 Subject: make sure get_all returns --- nova/compute/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nova/compute/api.py b/nova/compute/api.py index ffef20cee..630754395 100644 --- a/nova/compute/api.py +++ b/nova/compute/api.py @@ -261,8 +261,8 @@ class API(base.Base): given parameters. If there is no filter and the context is an admin, it will retreive all instances in the system.""" if reservation_id is not None: - rv = self.db.instance_get_all_by_reservation(context, - reservation_id) + return self.db.instance_get_all_by_reservation(context, + reservation_id) if fixed_ip is not None: return self.db.fixed_ip_get_instance(context, fixed_ip) if project_id or not context.is_admin: -- cgit