You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by je...@apache.org on 2013/06/28 21:18:53 UTC

git commit: updated refs/heads/master-6-17-stable to ab185fb

Updated Branches:
  refs/heads/master-6-17-stable b6484c3c4 -> ab185fb2b


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/ab185fb2
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/ab185fb2
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/ab185fb2

Branch: refs/heads/master-6-17-stable
Commit: ab185fb2bf30b970e5d95d491a2003a550332d5c
Parents: b6484c3
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:18:29 2013 -0700

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ab185fb2/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,