Skip to content

Commit

Permalink
Merge pull request #3 from artefactory/cn/fix/fix_null_relative_budge…
Browse files Browse the repository at this point in the history
…t_ref_bug_in_absolute_amount_budget

cn/fix/fix_null_relative_budget_ref_bug_in_absolute_amount_budget
  • Loading branch information
CharbelNaba authored Sep 25, 2023
2 parents 01e9e8f + 8a29c91 commit 7651369
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions budget.tf
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ resource "google_billing_budget" "absolute_amount_budget" {
}

dynamic "all_updates_rule" {
for_each = length(var.budgets.relative_amount.alerts.notification_channels) > 0 ? [1] : []
for_each = length(var.budgets.absolute_amount.alerts.notification_channels) > 0 ? [1] : []
content {
monitoring_notification_channels = var.budgets.relative_amount.alerts.notification_channels
pubsub_topic = var.budgets.relative_amount.alerts.pubsub_topic
disable_default_iam_recipients = var.budgets.relative_amount.alerts.disable_default_iam_recipients
monitoring_notification_channels = var.budgets.absolute_amount.alerts.notification_channels
pubsub_topic = var.budgets.absolute_amount.alerts.pubsub_topic
disable_default_iam_recipients = var.budgets.absolute_amount.alerts.disable_default_iam_recipients
}
}

Expand Down

0 comments on commit 7651369

Please sign in to comment.