Skip to content

Commit

Permalink
fix on vpn gateway connection (#5737)
Browse files Browse the repository at this point in the history
  • Loading branch information
uibm authored Oct 25, 2024
1 parent 835a19a commit 5f31a2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,9 @@ func TestAccIBMISVPNGatewayConnection_routeDistributeTraffic(t *testing.T) {
resource.TestCheckResourceAttrSet(
"ibm_is_vpn_gateway_connection.testacc_VPNGatewayConnection1", "distribute_traffic"),
resource.TestCheckResourceAttr(
"ibm_is_vpn_gateway_connection.testacc_VPNGatewayConnection1", "distribute_traffic", fmt.Sprintf("%t", dt)),
"ibm_is_vpn_gateway_connection.testacc_VPNGatewayConnection1", "distribute_traffic", "false"),
resource.TestCheckResourceAttr(
"ibm_is_vpn_gateway_connection.testacc_VPNGatewayConnection2", "distribute_traffic", fmt.Sprintf("%t", dt)),
),
},
{
Expand Down Expand Up @@ -542,7 +544,9 @@ func TestAccIBMISVPNGatewayConnection_routeDistributeTraffic(t *testing.T) {
resource.TestCheckResourceAttrSet(
"ibm_is_vpn_gateway_connection.testacc_VPNGatewayConnection1", "distribute_traffic"),
resource.TestCheckResourceAttr(
"ibm_is_vpn_gateway_connection.testacc_VPNGatewayConnection1", "distribute_traffic", fmt.Sprintf("%t", dt2)),
"ibm_is_vpn_gateway_connection.testacc_VPNGatewayConnection1", "distribute_traffic", "false"),
resource.TestCheckResourceAttr(
"ibm_is_vpn_gateway_connection.testacc_VPNGatewayConnection2", "distribute_traffic", fmt.Sprintf("%t", dt2)),
),
},
},
Expand Down
1 change: 1 addition & 0 deletions ibm/service/vpc/resource_ibm_is_vpn_gateway_connections.go
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,7 @@ func vpngwconUpdate(d *schema.ResourceData, meta interface{}, gID, gConnID strin

if d.HasChange("distribute_traffic") {
vpnGatewayConnectionPatchModel.DistributeTraffic = core.BoolPtr(d.Get("distribute_traffic").(bool))
hasChanged = true
}

if d.HasChange(isVPNGatewayConnectionName) {
Expand Down

0 comments on commit 5f31a2b

Please sign in to comment.