Skip to content

Commit

Permalink
removed null
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwal-ibm committed Oct 13, 2022
1 parent 831ec1f commit 8603b1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ibm/service/vpc/resource_ibm_is_vpn_gateway_connections.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ func vpngwconUpdate(d *schema.ResourceData, meta interface{}, gID, gConnID strin

if d.HasChange(isVPNGatewayConnectionIKEPolicy) {
ikePolicyIdentity := d.Get(isVPNGatewayConnectionIKEPolicy).(string)
if ikePolicyIdentity == "null" || ikePolicyIdentity == "" {
if ikePolicyIdentity == "" {
var nullPatch *vpcv1.VPNGatewayConnectionIkePolicyPatch
vpnGatewayConnectionPatchModel.IkePolicy = nullPatch
} else {
Expand All @@ -523,7 +523,7 @@ func vpngwconUpdate(d *schema.ResourceData, meta interface{}, gID, gConnID strin

if d.HasChange(isVPNGatewayConnectionIPSECPolicy) {
ipsecPolicyIdentity := d.Get(isVPNGatewayConnectionIPSECPolicy).(string)
if ipsecPolicyIdentity == "null" || ipsecPolicyIdentity == "" {
if ipsecPolicyIdentity == "" {
var nullPatch *vpcv1.VPNGatewayConnectionIPsecPolicyPatch
vpnGatewayConnectionPatchModel.IpsecPolicy = nullPatch
} else {
Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/is_vpn_gateway_connection.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ Review the argument references that you can specify for your resource.

- `action` - (Optional, String) Dead peer detection actions. Supported values are **restart**, **clear**, **hold**, or **none**. Default value is `restart`.
- `admin_state_up` - (Optional, Bool) The VPN gateway connection status. Default value is **false**. If set to false, the VPN gateway connection is shut down.
- `ike_policy` - (Optional, String) The ID of the IKE policy. Updating value from ID to `"null"` or `""` will remove the existing policy.
- `ike_policy` - (Optional, String) The ID of the IKE policy. Updating value from ID to `""` or making it `null` or removing it will remove the existing policy.
- `interval` - (Optional, Integer) Dead peer detection interval in seconds. Default value is 2.
- `ipsec_policy` - (Optional, String) The ID of the IPSec policy. Updating value from ID to `"null"` or `""` will remove the existing policy.
- `ipsec_policy` - (Optional, String) The ID of the IPSec policy. Updating value from ID to `""` or making it `null` or removing it will remove the existing policy.
- `local_cidrs` - (Optional, Forces new resource, List) List of local CIDRs for this resource.
- `name` - (Required, String) The name of the VPN gateway connection.
- `peer_cidrs` - (Optional, Forces new resource, List) List of peer CIDRs for this resource.
Expand Down

0 comments on commit 8603b1a

Please sign in to comment.