Cloudflare snippet rules are sorted by the rules' descriptions #4788
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
triage/debug-log-attached
Indicates an issue or PR has a complete Terraform debug log.
Confirmation
Terraform and Cloudflare provider version
Terraform v1.10.2
on darwin_arm64
Affected resource(s)
cloudflare_snippet_rules
Terraform configuration files
Link to debug output
https://gist.github.com/troymjones/8e6d1f15560c18d70390569dac1f0b0e
Panic output
No response
Expected output
The resource should respect the order of the list of rules OR at the very least provide a way to set a priority/order number. The only current way to do this dynamically that makes sense is to pad a number with zeros (due to lexicographical sorting) and prepend that to every description based upon the order.
Actual output
List of rules was reordered based upon the lexicographical sorting of the description for each rule.
Steps to reproduce
See terraform configuration files for an example.
Additional factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: