8000 fix(vpn): [125115907] `tencentcloud_vpn_connection` optmize nil id value by SevenEarth · Pull Request #3417 · tencentcloudstack/terraform-provider-tencentcloud · GitHub
[go: up one dir, main page]

Skip to content

fix(vpn): [125115907] tencentcloud_vpn_connection optmize nil id value #3417

New issue

Have a question about this project? Sign up for a free Gi 8000 tHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/3417.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/tencentcloud_vpn_connection: optmize nil id value
```
6 changes: 2 additions & 4 deletions tencentcloud/services/vpn/resource_tc_vpn_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -647,10 +647,8 @@ func resourceTencentCloudVpnConnectionCreate(d *schema.ResourceData, meta interf
log.Printf("[CRITAL]%s create VPN connection failed, reason:%s\n", logId, err.Error())
return err
}
}

if vpnConnectionId == "" {
return fmt.Errorf("VPN connection id is nil.")
} else {
vpnConnectionId = *response.Response.VpnConnection.VpnConnectionId
}

d.SetId(vpnConnectionId)
Expand Down
Loading
0