From 9f707a6b7deab28cc36cb0a5b3d2740ee5bde6c6 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Tue, 7 Aug 2012 11:27:02 -0700 Subject: [PATCH] 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. --- ui/scripts/vpc.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ui/scripts/vpc.js b/ui/scripts/vpc.js index 29380d030a8..6ae646650d4 100644 --- a/ui/scripts/vpc.js +++ b/ui/scripts/vpc.js @@ -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; } }