incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yas...@apache.org
Subject git commit: S2S VPN: CS-15998: Fix wrong vpc id in Site2SiteVpnGatewayResponse
Date Wed, 15 Aug 2012 19:14:51 GMT
Updated Branches:
  refs/heads/master 07efdb640 -> a3faff94f


S2S VPN: CS-15998: Fix wrong vpc id in Site2SiteVpnGatewayResponse


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

Branch: refs/heads/master
Commit: a3faff94ffdc96a3ee56b391d1bd9d3efed831a7
Parents: 07efdb6
Author: Sheng Yang <sheng.yang@citrix.com>
Authored: Wed Aug 15 10:44:29 2012 -0700
Committer: Sheng Yang <sheng.yang@citrix.com>
Committed: Wed Aug 15 12:10:19 2012 -0700

----------------------------------------------------------------------
 .../api/response/Site2SiteVpnGatewayResponse.java  |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/a3faff94/api/src/com/cloud/api/response/Site2SiteVpnGatewayResponse.java
----------------------------------------------------------------------
diff --git a/api/src/com/cloud/api/response/Site2SiteVpnGatewayResponse.java b/api/src/com/cloud/api/response/Site2SiteVpnGatewayResponse.java
index ef395c5..b1eaffd 100644
--- a/api/src/com/cloud/api/response/Site2SiteVpnGatewayResponse.java
+++ b/api/src/com/cloud/api/response/Site2SiteVpnGatewayResponse.java
@@ -32,7 +32,7 @@ public class Site2SiteVpnGatewayResponse extends BaseResponse implements
Control
     private String ip;
 
     @SerializedName(ApiConstants.VPC_ID) @Param(description="the vpc id of this gateway")
-    private Long vpcId;
+    private IdentityProxy vpcId = new IdentityProxy("vpc");
 
     @SerializedName(ApiConstants.ACCOUNT) @Param(description="the owner")
     private String accountName;
@@ -61,7 +61,7 @@ public class Site2SiteVpnGatewayResponse extends BaseResponse implements
Control
 	}
 	
 	public void setVpcId(Long vpcId) {
-		this.vpcId = vpcId;
+		this.vpcId.setValue(vpcId);
 	}
 	
     public void setRemoved(Date removed) {


Mime
View raw message