From da36ffe1e7e43e74ed167e64bbe41d5b0913b4f5 Mon Sep 17 00:00:00 2001 From: Rohit Yadav Date: Thu, 12 May 2016 18:14:06 +0530 Subject: [PATCH] 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 --- ui/scripts/metrics.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/scripts/metrics.js b/ui/scripts/metrics.js index 46d6b53bd0e..3ce8470af35 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);