summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2014-03-28 04:39:09 +0000
committerGerrit Code Review <review@openstack.org>2014-03-28 04:39:09 +0000
commit3d04c3c6ac5fd4801215edb6c5241c7e151515df (patch)
tree81af0d2574699ed47ec612449d93bafde04a1e57
parentb2259b352fd1e00a269b8275afa8093223598235 (diff)
parentcf181c1928f263c95ee5e46b168838e95c587881 (diff)
Merge "Reduce number of novaclient calls" into stable/havana2013.2.3
-rw-r--r--openstack_dashboard/api/nova.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/openstack_dashboard/api/nova.py b/openstack_dashboard/api/nova.py
index 1e9b1d7..1d6e763 100644
--- a/openstack_dashboard/api/nova.py
+++ b/openstack_dashboard/api/nova.py
@@ -670,8 +670,9 @@ def service_list(request):
670 670
671def aggregate_list(request): 671def aggregate_list(request):
672 result = [] 672 result = []
673 for aggregate in novaclient(request).aggregates.list(): 673 c = novaclient(request)
674 result.append(novaclient(request).aggregates.get_details(aggregate.id)) 674 for aggregate in c.aggregates.list():
675 result.append(c.aggregates.get_details(aggregate.id))
675 676
676 return result 677 return result
677 678