cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject [21/48] git commit: updated refs/heads/4.9-bountycastle-daan to 98bf0ca
Date Tue, 24 May 2016 09:49:26 GMT
CLOUDSTACK-9377: Fix metrics pagesize issue

Fixes listing of clusters and host to list all clusters/hosts by passing
pagesize=-1.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/da36ffe1
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/da36ffe1
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/da36ffe1

Branch: refs/heads/4.9-bountycastle-daan
Commit: da36ffe1e7e43e74ed167e64bbe41d5b0913b4f5
Parents: e3b38bb
Author: Rohit Yadav <rohit.yadav@shapeblue.com>
Authored: Thu May 12 18:14:06 2016 +0530
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Mon May 16 18:19:10 2016 +0530

----------------------------------------------------------------------
 ui/scripts/metrics.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/da36ffe1/ui/scripts/metrics.js
----------------------------------------------------------------------
diff --git a/ui/scripts/metrics.js b/ui/scripts/metrics.js
index 46d6b53..3ce8470 100644
--- a/ui/scripts/metrics.js
+++ b/ui/scripts/metrics.js
@@ -153,7 +153,7 @@
 
                                 $.ajax({
                                     url: createURL('listClusters'),
-                                    data: {zoneid: zone.id},
+                                    data: {zoneid: zone.id, pagesize: -1},
                                     success: function(json) {
                                         if (json && json.listclustersresponse &&
json.listclustersresponse.cluster && json.listclustersresponse.count) {
                                             items[idx].clusters += parseInt(json.listclustersresponse.count);
@@ -163,7 +163,7 @@
                                                 }
                                                 $.ajax({
                                                     url: createURL('listHosts'),
-                                                    data: {clusterid: cluster.id, type: 'routing'},
+                                                    data: {clusterid: cluster.id, type: 'routing',
pagesize: -1},
                                                     success: function(json) {
                                                         if (json && json.listhostsresponse
&& json.listhostsresponse.host && json.listhostsresponse.count) {
                                                             items[idx].hosts += parseInt(json.listhostsresponse.count);
@@ -415,7 +415,7 @@
 
                                 $.ajax({
                                     url: createURL('listHosts'),
-                                    data: {clusterid: cluster.id, type: 'routing'},
+                                    data: {clusterid: cluster.id, type: 'routing', pagesize:
-1},
                                     success: function(json) {
                                         if (json && json.listhostsresponse &&
json.listhostsresponse.host && json.listhostsresponse.count) {
                                             items[idx].hosts += parseInt(json.listhostsresponse.count);


Mime
View raw message