Skip to content
New issue

Have a question about this project? Sign up for a free GitHub 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

invalid syntax for 'client_keepalive' field #432

Closed
blackden opened this issue Apr 21, 2024 · 2 comments
Closed

invalid syntax for 'client_keepalive' field #432

blackden opened this issue Apr 21, 2024 · 2 comments
Assignees
Labels
bug Something isn't working released

Comments

@blackden
Copy link

blackden commented Apr 21, 2024

Issue Description:
When running Terraform planning, an error occurs. The error happens when attempting to create the routeros_interface_wireguard_peer resource with the client_keepalive parameter. The error indicates that Terraform expects a numeric value for the client_keepalive parameter but fails to parse it correctly, even when a numeric value is provided as expected.

Steps to Reproduce:

  1. Run Terraform using a configuration file that includes the routeros_interface_wireguard_peer resource.
  2. Attempt to perform planning (terraform plan).

Expected Behavior:
Expected successful planning execution without errors, as the client_keepalive parameter was specified as a numeric value according to the documentation.

Actual Behavior:
When performing planning, an error is encountered indicating that Terraform cannot parse the numeric value of the client_keepalive parameter, even though it is correctly represented.

Terraform Version:
Terraform v1.7.5
on darwin_arm64

Configuration File:

resource "routeros_interface_wireguard_peer" "wg_peer" {
  # Other parameters...
  client_keepalive = 25  # Correct numeric value
}

Documentation:
Link to the documentation where the client_keepalive parameter is described as requiring a numeric value.

Additional Notes:


╷
│ Error: strconv.Atoi: parsing "25s": invalid syntax for 'client_keepalive' field
│ 
│   with routeros_interface_wireguard_peer.wg_peer["0"],
│   on interface_wireguard_peer.tf line 21, in resource "routeros_interface_wireguard_peer" "wg_peer":
│   21: resource "routeros_interface_wireguard_peer" "wg_peer" {
│ 
╵
@blackden blackden added the bug Something isn't working label Apr 21, 2024
@vaerh vaerh self-assigned this Apr 21, 2024
@vaerh
Copy link
Collaborator

vaerh commented Apr 21, 2024

Thanks, fixed!

@vaerh vaerh mentioned this issue Apr 21, 2024
@vaerh vaerh closed this as completed in df24de2 Apr 21, 2024
@vaerh
Copy link
Collaborator

vaerh commented Apr 21, 2024

🎉 This issue has been resolved in version 1.46.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@vaerh vaerh added the released label Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

No branches or pull requests

2 participants