From 5bd7fb6088c5f96ac185a89b7af62074240cd34a 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 352386537c7..9aa622c8a2c 100644 --- a/ui/scripts/autoscaler.js +++ b/ui/scripts/autoscaler.js @@ -181,7 +181,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 }; @@ -196,7 +196,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() };