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.

This commit is contained in:
Jessica Wang 2012-08-07 11:27:02 -07:00
parent c7c13aea91
commit 9f707a6b7d
1 changed files with 2 additions and 3 deletions

View File

@ -938,7 +938,7 @@
$.ajax({
url: createURL('listVpnGateways'),
data: {
vpcid: args.data.vpcid
vpcid: args.context.vpc[0].id
},
async: false,
success: function(json) {
@ -965,8 +965,7 @@
{_custom:
{
jobId: jid,
getUpdatedItem: function(json) {
debugger;
getUpdatedItem: function(json) {
return json.queryasyncjobresultresponse.jobresult.vpnconnection;
}
}