Commit afe36dc
committed
Always set IPv6 fields in Read to properly detect drift
Previously, ip6cidr and ip6gateway were only set in state when they had
non-empty values from the API. This prevented Terraform from detecting
drift when IPv6 configuration was removed or cleared server-side.
Now these fields are always set from the API response (even if empty),
allowing Terraform to properly detect when IPv6 has been removed and
trigger a plan diff. The schema already handles avoiding unnecessary
diffs when users haven't configured IPv6 (Optional + Computed fields).1 parent f207255 commit afe36dc
1 file changed
Lines changed: 3 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
370 | 364 | | |
371 | 365 | | |
372 | 366 | | |
| |||
0 commit comments