You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see from my configuration file, I did not specify the ipreverse field, the code then uses the API endpoint ip/<ip>/reverse and according to the official documentation this endpoint returns a list of ips.
The problem is "resolved" if I set ipreverse to the value of ip without the mask.
Though I need to delete the resource from my state because the state does not have an ipreverse.
Steps to Reproduce
terraform apply
Important Factoids
Nothing
References
Nothing
The text was updated successfully, but these errors were encountered:
thank you for this very clean report. it greatly helps the debugging.
While trying to reproduce & fix the issue, i noticed several flaws in the resource implementation, so i rewrote it
following the same patterns we use for other resources.
the most notable (and breaking) changes are that now
ipreverse is renamed ip_reverse to follow the naming convention
ip_reverse is mandatory.
in a global manner, we'd like the provider to mimic the API behaviour & design, without embedding custom logic.
this would eventually allow us to generate the provider from the api definition.
i'ill try to release a new version which this new version included soon
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Sorry I did not respect the guidelines here but the debug output is short and the bug has been precisely defined in the section "Actual behavior".
Panic Output
This used to crash Terraform in release 0.11 but after upgrading to 0.14 there's a useful error message:
Expected Behavior
Per the title, when looking up the state of
ovh_ip_reverse
, it should not fail to validate.Actual Behavior
The code expects the API to return a flat object but it returns an array.
terraform-provider-ovh/ovh/resource_ip_reverse.go
Lines 102 to 120 in 54b2954
As you can see from my configuration file, I did not specify the
ipreverse
field, the code then uses the API endpointip/<ip>/reverse
and according to the official documentation this endpoint returns a list of ips.The problem is "resolved" if I setipreverse
to the value ofip
without the mask.Though I need to delete the resource from my state because the state does not have an
ipreverse
.Steps to Reproduce
terraform apply
Important Factoids
Nothing
References
Nothing
The text was updated successfully, but these errors were encountered: