cloudflare_access_policy
only pick up the last access condition block
#1372
Labels
kind/support
Categorizes issue or PR as related to user support.
Confirmation
Terraform and Cloudflare provider version
Terraform v1.0.11
on darwin_arm64
Affected resource(s)
cloudflare_access_policy
Terraform configuration files
Debug output
N/A
Panic output
No response
Expected output
All access condition be created in Cloudflare
Actual output
Only the last condition block get created
Steps to reproduce
terraform apply
Additional factoids
I think the problem come from this function
https://github.com/cloudflare/terraform-provider-cloudflare/blob/master/cloudflare/resource_cloudflare_access_policy.go#L260
. Instead of append all configs intopolicy.(Include|Require|Exclude)
, it does an assignment to the last non-nil configI have tried to modify a little bit & it worked as expected. Will happy to contribute if this is actually a bug
References
No response
The text was updated successfully, but these errors were encountered: