Skip to content

Commit

Permalink
Merge pull request hashicorp#37879 from hashicorp/td-int-conversion
Browse files Browse the repository at this point in the history
Fixes integer size
  • Loading branch information
gdavison authored Jun 10, 2024
2 parents 7e17b2f + 9bc500e commit fd624e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/ec2/vpnsite_customer_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func resourceCustomerGatewayCreate(ctx context.Context, d *schema.ResourceData,
}

if v, ok := d.GetOk("bgp_asn"); ok {
v, err := strconv.ParseInt(v.(string), 10, 64)
v, err := strconv.ParseInt(v.(string), 10, 32)

if err != nil {
return sdkdiag.AppendFromErr(diags, err)
Expand Down

0 comments on commit fd624e0

Please sign in to comment.