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() };