Skip to content

Commit f947f22

Browse files
Try to squish New Relic alerts unless configured
1 parent ae2a0c6 commit f947f22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

terraform/newrelic.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ resource "newrelic_alert_policy_channel" "alert_email" {
5353
policy_id = "${newrelic_alert_policy.alert.id}"
5454
channel_id = "${newrelic_alert_channel.email.id}"
5555

56-
count = "${length(var.newrelic_alert_email) > 0 ? 1 : 0}"
56+
count = "${length(var.newrelic_alert_email) > 0 ? (var.newrelic_alerts ? 1 : 0) : 0}"
5757
}
5858

5959
# Add a dashboard

0 commit comments

Comments
 (0)