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

fix wiregueard resources #214

Merged
merged 2 commits into from
Dec 16, 2023

Conversation

maksym-nazarenko
Copy link
Collaborator

This PR fixes Wireguard interface and peer resources.

The issues:

  1. WireguardPeer resource used interface name as primary resource id and when more that one peer was created for the same interface name, it was not possible to distinguish them only by interface name
  2. Terraform model in both wireguard resources used ID field name, but counterpart from the client package uses Id for its field name, so copyStruct() func could not properly map them. To improve this subtle behavior, Improve copyStruct() function to be case insensitive #213 was created.

As a side effect, Terraform resources were migrated to new GenericCrud() functions

@ddelnano ddelnano merged commit 1884f40 into ddelnano:master Dec 16, 2023
4 checks passed
@ddelnano ddelnano added the bug Something isn't working label Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working provider
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants