Closed pwilczynskiclearcode closed 1 month ago
Similar issues:
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to bunnynet_pullzone_edgerule.block_paths["efg"], provider "provider[\"registry.terraform.io/bunnyway/bunnynet\"]" produced an unexpected new value: .triggers[0].parameter1: was cty.StringVal(""), but now null.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to bunnynet_pullzone_edgerule.block_paths["efg"], provider "provider[\"registry.terraform.io/bunnyway/bunnynet\"]" produced an unexpected new value: .triggers[0].parameter2: was cty.StringVal(""), but now null.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
No matter if I set up parameter1 = null
or parameter1 = ""
the issue is the same
Hi!
Currently it's not possible to unset/remove the value from custom_404_file_path
, as this is a limitation in our API. I've flagged the issue to our API team and will update the provider once it's implemented. As a workaround, you can set the value to a path that doesn't exist in your storage, it should then render the original 404 page from Bunny.
Thank you.
Hi.
Our API team fixed the underlying issue and custom_404_file_path
can now be unset. Please upgrade the provider to v0.3.12 (just released).
Thank you.
@rafael-at-bunny Thank you.
What about .triggers[0].parameter1
and .triggers[0].parameter2
of the edge rules that I mentioned. Why they are always required fields when in many edge rules they must be null
. What is this error message about? Is it possible that provider sends ""
(empty string) but API returns null
so terraform complains?
Hi.
Why they are always required fields when in many edge rules they must be null
That's unfortunately a limitation in the terraform framework (see https://github.com/hashicorp/terraform-plugin-framework/issues/726), as we can't define defaults (or even Required: false
) on nested attributes.
What is https://github.com/BunnyWay/terraform-provider-bunnynet/issues/8#issuecomment-2328450959 about?
I'd need more details (as in: the terraform resource that caused it). We are handling empty strings for those attributes, so I'm not sure how you're triggering this error.
Thank you.
Sorry I can't reproduce it. I believe that was related somehow to using terraform import bunnynet_pullzone_edgerule...
but it works now.
Thank you for the help
I can't nullify the
custom_404_file_path
of a storage zone:plans shows
but apply fails:
The resource was initially imported using
terraform import