-
Notifications
You must be signed in to change notification settings - Fork 609
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
crash on cloudflare_ruleset import with empty serve_stale #3452
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Thank you for reporting this issue! For maintainers to dig into issues it is required that all issues include the entirety of This issue has been marked with |
Alternatively someone needs to address this to CF. After removing the flag and having it set through terraform, the api reports it as follow:
This is now also parseable by the provider and doesn't panic anymore. |
Can confirm this issue, adding disable_stale_while_updating section via UI without enabling it crashes terraform provider |
Marking this issue as stale due to 30 days of inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 7 days it will automatically be closed. Maintainers can also remove the |
How do get rid of this "needs-information" tag? Everything is there. |
you'll need to provide the full debug log; not your snipped version of it. |
@lobeck thank you! at least the community here is helpful on workarounds for bugs! |
Marking this issue as stale due to 30 days of inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 7 days it will automatically be closed. Maintainers can also remove the |
This issue was closed because it has been stalled for 7 days with no activity. |
Confirmation
Terraform and Cloudflare provider version
Terraform v1.7.5
on darwin_arm64
Affected resource(s)
cloudflare_ruleset
Terraform configuration files
Link to debug output
see below
Panic output
Expected output
resource import and diff
Actual output
crash
Steps to reproduce
create a cache rule in the ui and select "Add setting"
This will expand the rule like this:
In the API, this causes the following response:
Note the empty serve_stale map.
When looking at the panic, it crashes while it's trying to read
DisableStaleWhileUpdating
/disable_stale_while_updating
https://github.com/cloudflare/terraform-provider-cloudflare/blob/master/internal/framework/service/rulesets/resource.go#L624
Additional factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: