Skip to content

Commit

Permalink
Add data resources relate dto team and schedule for escalation
Browse files Browse the repository at this point in the history
  • Loading branch information
diraol committed Jul 25, 2024
1 parent 77e5eb8 commit e7de020
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion modules/config/escalations.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ resource "opsgenie_escalation" "this" {

recipient {
type = rules.value.recipient.type

id = try(rules.value.recipient.id, null) != null ? rules.value.recipient.id : (
rules.value.recipient.type == "team" ? try(opsgenie_team.this[rules.value.recipient.team_name].id, data.opsgenie_team.this[rules.value.recipient.team_name].id) : (
rules.value.recipient.type == "user" ? try(opsgenie_user.this[rules.value.recipient.user_name].id, data.opsgenie_user.this[rules.value.recipient.user_name].id) : (
Expand Down

0 comments on commit e7de020

Please sign in to comment.