Skip to content

Commit

Permalink
Fix alert policies
Browse files Browse the repository at this point in the history
  • Loading branch information
diraol committed Sep 2, 2024
1 parent a85481c commit a45f322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/config/alert_policies.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# https://docs.opsgenie.com/docs/alert-api

resource "opsgenie_alert_policy" "this" {
for_each = module.this.enabled ? { for policy in local.alert_policies : policy.name => policy } : {}
for_each = module.this.enabled ? { for policy in local.alert_policies : policy.name => policy } : tomap()

name = each.value.name
policy_description = try(each.value.policy_description, each.value.name)
Expand Down

0 comments on commit a45f322

Please sign in to comment.