summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortermie <code@term.ie>2011-01-12 19:38:27 -0800
committertermie <code@term.ie>2011-01-12 19:38:27 -0800
commit3419feff16e1974aa353188eee11609fc786148d (patch)
treec7891597a41edd1289d8ddb9b37f19718efda2a0
parentd79600c1029ab91de8a81809df9efddc762351c0 (diff)
make sure get_all returns
-rw-r--r--nova/compute/api.py4
1 files 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: