mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Merge pull request #1540 from shapeblue/metrics-pagesize-fix
CLOUDSTACK-9377: Fix metrics pagesize issueFixes listing of clusters and host to list all clusters/hosts by passing pagesize=-1. /cc @koushik-das @swill @DaanHoogland -- fixes the issue raised on dev@ ML by Rashmi * pr/1540: CLOUDSTACK-9377: Fix metrics pagesize issue Signed-off-by: Will Stevens <williamstevens@gmail.com>
This commit is contained in:
commit
a38b17fff2
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user