cloudstack 3.0 UI - site to site VPN - create VPN connection - fix a bug that wrong vpnGatewayId is passed to API command where there are multiple VPN gateways are present in one account.
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/406ae0d7 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/406ae0d7 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/406ae0d7 Branch: refs/heads/master Commit: 406ae0d72486f575b3172f3aafb522f7baebb8ab Parents: 0db3328 Author: Jessica Wang <[email protected]> Authored: Tue Aug 7 11:27:02 2012 -0700 Committer: Jessica Wang <[email protected]> Committed: Wed Aug 8 10:26:52 2012 -0700 ---------------------------------------------------------------------- ui/scripts/vpc.js | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/406ae0d7/ui/scripts/vpc.js ---------------------------------------------------------------------- diff --git a/ui/scripts/vpc.js b/ui/scripts/vpc.js index ae9c844..ac89971 100644 --- a/ui/scripts/vpc.js +++ b/ui/scripts/vpc.js @@ -958,7 +958,7 @@ $.ajax({ url: createURL('listVpnGateways'), data: { - vpcid: args.data.vpcid + vpcid: args.context.vpc[0].id }, async: false, success: function(json) { @@ -985,8 +985,7 @@ {_custom: { jobId: jid, - getUpdatedItem: function(json) { - debugger; + getUpdatedItem: function(json) { return json.queryasyncjobresultresponse.jobresult.vpnconnection; } }
