Updated Branches:
  refs/heads/autoscale 61be77f46 -> 9d60d5d08

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)


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/9d60d5d0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/9d60d5d0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/9d60d5d0

Branch: refs/heads/autoscale
Commit: 9d60d5d08e7bb33345f3ca4f5152448a42f1772a
Parents: 61be77f
Author: Jessica Wang <[email protected]>
Authored: Mon Aug 20 13:56:46 2012 -0700
Committer: Jessica Wang <[email protected]>
Committed: Mon Aug 20 14:08:14 2012 -0700

----------------------------------------------------------------------
 ui/scripts/autoscaler.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/9d60d5d0/ui/scripts/autoscaler.js
----------------------------------------------------------------------
diff --git a/ui/scripts/autoscaler.js b/ui/scripts/autoscaler.js
index 39e6e30..81ec51f 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()
                                                                        };

Reply via email to