Skip to content

Commit 96e9952

Browse files
committed
fix: Muting rule inter condition operator ambiguous
1 parent 7a3df88 commit 96e9952

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

newrelic/resource_newrelic_alert_muting_rule.go

+1
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ func resourceNewRelicAlertMutingRule() *schema.Resource {
157157
Type: schema.TypeString,
158158
Required: true,
159159
Description: "The operator used to combine all the MutingRuleConditions within the group.",
160+
ValidateFunc: validation.StringInSlice([]string{"AND", "OR"}, true),
160161
},
161162
},
162163
},

website/docs/r/alert_muting_rule.html.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ The following arguments are supported:
6060

6161
All nested `condition` blocks support the following arguments:
6262
* `conditions` - (Optional) The individual MutingRuleConditions within the group. See [Nested conditions blocks](#nested-conditions-blocks) below for details.
63-
* `operator` - (Required) The operator used to combine all the MutingRuleConditions within the group.
63+
* `operator` - (Required) The operator used to combine all the MutingRuleConditions within the group. Valid values are `AND`, `OR`.
6464

6565

6666
### Nested `conditions` blocks

0 commit comments

Comments
 (0)