Browse Source

Merge "Reduce number of novaclient calls" into stable/havana

tags/2013.2.3^0
Jenkins 5 years ago
parent
commit
3d04c3c6ac
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      openstack_dashboard/api/nova.py

+ 3
- 2
openstack_dashboard/api/nova.py View File

@@ -670,8 +670,9 @@ def service_list(request):
670 670
 
671 671
 def aggregate_list(request):
672 672
     result = []
673
-    for aggregate in novaclient(request).aggregates.list():
674
-        result.append(novaclient(request).aggregates.get_details(aggregate.id))
673
+    c = novaclient(request)
674
+    for aggregate in c.aggregates.list():
675
+        result.append(c.aggregates.get_details(aggregate.id))
675 676
 
676 677
     return result
677 678
 

Loading…
Cancel
Save