We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae2a0c6 commit f947f22Copy full SHA for f947f22
terraform/newrelic.tf
@@ -53,7 +53,7 @@ resource "newrelic_alert_policy_channel" "alert_email" {
53
policy_id = "${newrelic_alert_policy.alert.id}"
54
channel_id = "${newrelic_alert_channel.email.id}"
55
56
- count = "${length(var.newrelic_alert_email) > 0 ? 1 : 0}"
+ count = "${length(var.newrelic_alert_email) > 0 ? (var.newrelic_alerts ? 1 : 0) : 0}"
57
}
58
59
# Add a dashboard
0 commit comments