瀏覽代碼

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

tags/2013.2.3^0
Jenkins 5 年之前
父節點
當前提交
3d04c3c6ac
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3
    2
      openstack_dashboard/api/nova.py

+ 3
- 2
openstack_dashboard/api/nova.py 查看文件

@@ -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…
取消
儲存