From 9365e5403b96eaee93812f57c65b0035b615112a Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Mon, 20 Aug 2012 13:56:46 -0700 Subject: [PATCH] CS-16096: cloudstack 3.0 UI - autoscale - fix a regression caused by a server-server side change: ad6ac9b4498cc47c5f111fc0627a7ccfcd3dfe78 (CS-15617. Changed CounterResponse to a List as queryAsyncJob expects it.) (Reviewed-by: Brian) --- ui/scripts/autoscaler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/scripts/autoscaler.js b/ui/scripts/autoscaler.js index 39e6e305d21..81ec51fe4c7 100644 --- a/ui/scripts/autoscaler.js +++ b/ui/scripts/autoscaler.js @@ -139,7 +139,7 @@ $(autoscaleVmGroup.scaleuppolicies[0].conditions).each(function(){ var condition = { id: this.id, - counterid: this.counter.id, + counterid: this.counter[0].id, relationaloperator: this.relationaloperator, threshold: this.threshold }; @@ -154,7 +154,7 @@ $(autoscaleVmGroup.scaledownpolicies[0].conditions).each(function(){ var condition = { id: this.id, - counterid: this.counter.id, + counterid: this.counter[0].id, relationaloperator: this.relationaloperator, threshold: this.threshold.toString() };