Skip to content
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

Custom Fields - Default value can't be set for boolean types #908

Open
imjaroiswebdev opened this issue Jul 15, 2024 · 0 comments
Open

Custom Fields - Default value can't be set for boolean types #908

imjaroiswebdev opened this issue Jul 15, 2024 · 0 comments

Comments

@imjaroiswebdev
Copy link
Contributor

Terraform Version

Terraform v1.6.6
on darwin_arm64

  • provider registry.terraform.io/pagerduty/pagerduty v3.14.5

Affected Resource(s)

Please list the resources as a list, for example:

  • pagerduty_incident_custom_field

Terraform Configuration Files

resource "pagerduty_incident_custom_field" "false_alarm" {
  name          = "false_alarm"
  display_name  = "False Alarm"
  data_type     = "boolean"
  field_type    = "single_value"
  default_value = "false"
}

Debug Output

│ Error: POST API call to https://api.pagerduty.com/incidents/custom_fields failed 400 Bad Request. Code: 2001, Errors: [default_value must match field settings], Message: Bad Request
│
│   with pagerduty_incident_custom_field.false_alarm,
│   on main.tf line 207, in resource "pagerduty_incident_custom_field" "false_alarm":
│  207: resource "pagerduty_incident_custom_field" "false_alarm" {
│

Expected Behavior

Custom Field successfully created

Actual Behavior

Failing

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant