You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ah...@apache.org on 2013/07/01 23:24:47 UTC

[03/50] [abbrv] git commit: updated refs/heads/vmsync to f737019

CLOUDSTACK-3255: UI > VPC section - IP Address - Load Balancing - autoscale - fix a bug that failed to get zoneid for createAutoScaleVmProfile API.


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

Branch: refs/heads/vmsync
Commit: dfb2e1d4f5bbb4e1be0160a4a65dc324ead27fbb
Parents: 7892258
Author: Jessica Wang <je...@apache.org>
Authored: Fri Jun 28 12:16:22 2013 -0700
Committer: Jessica Wang <je...@apache.org>
Committed: Fri Jun 28 12:19:28 2013 -0700

----------------------------------------------------------------------
 ui/scripts/autoscaler.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/dfb2e1d4/ui/scripts/autoscaler.js
----------------------------------------------------------------------
diff --git a/ui/scripts/autoscaler.js b/ui/scripts/autoscaler.js
index 05011a3..15a9dac 100644
--- a/ui/scripts/autoscaler.js
+++ b/ui/scripts/autoscaler.js
@@ -1069,7 +1069,7 @@
 					var apiCmd, apiCmdRes;							
 					if(!('multiRules' in args.context)) { //from a new LB 	
             var data = {
-						  zoneid: args.context.networks[0].zoneid,
+						  zoneid: args.context.ipAddresses[0].zoneid, //args.context.networks[0] doesn't have zoneid property, so use args.context.ipAddresses[0] instead
 							serviceofferingid: args.data.serviceOfferingId,
 							templateid: args.data.templateNames,
 							destroyvmgraceperiod: args.data.destroyVMgracePeriod,