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
Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.
Skipping this, can add if needed, this is not an internal issue.
Panic Output
N/A
Expected Behavior
Empty string is a valid body to expect, so this should have cleanly created the resource.
Actual Behavior
Whether creating or modifying, this value is rejected
module.the_watch_platform.module.cloudflare_lb_monitor.cloudflare_load_balancer_monitor.k8s_ingress: Modifying... [id=3a0704af92a48e7d677627a4f53833d4]
Error: expected_body must be set
on ../modules/cloudflare/lb_monitor/main.tf line 16, in resource "cloudflare_load_balancer_monitor" "k8s_ingress":
16: resource "cloudflare_load_balancer_monitor" "k8s_ingress" {
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
GetOk checks for a "non zero" value. But the only zero value possible in strings is the empty string: ""
You will need to mark this value as required, and use .Get(), to get the intended effect of requiring it to be set to something, but allowing empty string.
The text was updated successfully, but these errors were encountered:
Hi there,
Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.
Terraform Version
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Debug Output
Skipping this, can add if needed, this is not an internal issue.
Panic Output
N/A
Expected Behavior
Empty string is a valid body to expect, so this should have cleanly created the resource.
Actual Behavior
Whether creating or modifying, this value is rejected
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Important Factoids
N/A
References
This code here is the problem:
https://github.com/terraform-providers/terraform-provider-cloudflare/blob/master/cloudflare/resource_cloudflare_load_balancer_monitor.go#L170-L174
GetOk checks for a "non zero" value. But the only zero value possible in strings is the empty string:
""
You will need to mark this value as required, and use
.Get()
, to get the intended effect of requiring it to be set to something, but allowing empty string.The text was updated successfully, but these errors were encountered: