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
///////////////////////////////////////////////////////// Example Rule// This rule demonstrates a bug when changing the value of 'disabled' from true to falseresource"pagerduty_ruleset_rule""rule0" {
position=0ruleset="${pagerduty-ruleset.ruleset.id}"disabled=false/* Updating this from false to true does not work. Rule will remain disabled permanently.*/conditions {
operator="and"subconditions {
operator="matches"parameter {
value="(?i).*test.*"path="AlarmName"
}
}
}
actions {
route {
value="${pagerduty-service.service.id}"
}
}
}
Debug Output
N/A
Panic Output
N/A
Expected Behavior
A rule that was deployed with disabled=true initially, should be able to be re-enabled by running Apply again after changing it to disabled=false
Actual Behavior
Rule remained Disabled.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
Set disabled=true on a rule
Run terraform apply
Verify that the rule was created and is Disabled
Update Terraform script so that disabled=false on the same rule
Run terraform apply
Observe that the rule is still disabled.
Important Factoids
N/A
References
N/A
The text was updated successfully, but these errors were encountered:
This is an issue with how we define the disabled field in Go code. It is defined with the annotation disabled, omitempty so disabled=false does not show up in the JSON we try to send in our PUT request because the Go JSON marshaller considers false to be an empty value. I will work on a fix.
Terraform Version
terraform: v0.12.8
terraform-provider-pagerduty: v1.7.3
Affected Resource(s)
pagerduty_ruleset_rule
Terraform Configuration Files
Debug Output
N/A
Panic Output
N/A
Expected Behavior
A rule that was deployed with
disabled=true
initially, should be able to be re-enabled by running Apply again after changing it todisabled=false
Actual Behavior
Rule remained Disabled.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
disabled=true
on a ruleterraform apply
disabled=false
on the same ruleterraform apply
Important Factoids
N/A
References
N/A
The text was updated successfully, but these errors were encountered: