zerotier / terraform-provider-zerotier

Terraform provider for controlling ZeroTier Central
https://zerotier.com
BSD 3-Clause "New" or "Revised" License
68 stars 21 forks source link

6plane & rfc4193 addresses are flipped? #36

Closed ethanjli closed 1 year ago

ethanjli commented 1 year ago

v1.4.0 (and in particular #35) added rfc4193 and sixplane address calculations to member.go. As I understand it, this should expose the RFC4193 and 6PLANE addresses from the zerotier_member resource through the rfc4193 and sixplane properties, respectively. However, the addresses I'm getting from those properties are as follows:

These observations appear to be consistent with how the addresses are calculated in the code: https://github.com/zerotier/terraform-provider-zerotier/blob/e57bb0f4be482b3cc93f91aa9f3e521670b16bfb/pkg/zerotier/member.go#L172-L181

I often get confused when troubleshooting whether I flipped something incorrectly - am I understanding the situation correctly as a bug in terraform-provider-zerotier@v1.4.0, or is this some other confusion on my part?

someara commented 1 year ago

Hello!

Yes, this is absolutely a bug. I apologize for not catching it before merging. -s

someara commented 1 year ago

Sorry this took so long to get around to. There's a fix released in v1.4.2 -s

ethanjli commented 1 year ago

No worries, and thanks!