Skip to content

Commit

Permalink
Fix cloudconnexa_vpn_region data source
Browse files Browse the repository at this point in the history
  • Loading branch information
sahaqaa committed Aug 1, 2024
1 parent 4fe6952 commit 04c36a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cloudconnexa/data_source_vpn_region.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package cloudconnexa

import (
"context"

"github.com/openvpn/cloudconnexa-go-client/v2/cloudconnexa"

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
Expand Down Expand Up @@ -45,7 +46,7 @@ func dataSourceVpnRegion() *schema.Resource {
func dataSourceVpnRegionRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics {
c := m.(*cloudconnexa.Client)
var diags diag.Diagnostics
vpnRegionId := d.Get("region_id").(string)
vpnRegionId := d.Get("id").(string)
vpnRegion, err := c.VPNRegions.GetVpnRegion(vpnRegionId)
if err != nil {
return append(diags, diag.FromErr(err)...)
Expand Down

0 comments on commit 04c36a1

Please sign in to comment.