Skip to content

Commit

Permalink
fix: Invalid variable name in outlier_detection block (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
btkelly authored Nov 6, 2023
1 parent f8ce32e commit 34fbda9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions autogen/main.tf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,10 @@ resource "google_compute_backend_service" "default" {
}

dynamic "interval" {
for_each = each.value.outlier_detection.cache_key_policy != null ? [1] : []
for_each = each.value.outlier_detection.interval != null ? [1] : []
content {
seconds = each.value.outlier_detection.cache_key_policy.seconds
nanos = each.value.outlier_detection.cache_key_policy.nanos
seconds = each.value.outlier_detection.interval.seconds
nanos = each.value.outlier_detection.interval.nanos
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,10 @@ resource "google_compute_backend_service" "default" {
}

dynamic "interval" {
for_each = each.value.outlier_detection.cache_key_policy != null ? [1] : []
for_each = each.value.outlier_detection.interval != null ? [1] : []
content {
seconds = each.value.outlier_detection.cache_key_policy.seconds
nanos = each.value.outlier_detection.cache_key_policy.nanos
seconds = each.value.outlier_detection.interval.seconds
nanos = each.value.outlier_detection.interval.nanos
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions modules/dynamic_backends/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,10 @@ resource "google_compute_backend_service" "default" {
}

dynamic "interval" {
for_each = each.value.outlier_detection.cache_key_policy != null ? [1] : []
for_each = each.value.outlier_detection.interval != null ? [1] : []
content {
seconds = each.value.outlier_detection.cache_key_policy.seconds
nanos = each.value.outlier_detection.cache_key_policy.nanos
seconds = each.value.outlier_detection.interval.seconds
nanos = each.value.outlier_detection.interval.nanos
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions modules/serverless_negs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,10 @@ resource "google_compute_backend_service" "default" {
}

dynamic "interval" {
for_each = each.value.outlier_detection.cache_key_policy != null ? [1] : []
for_each = each.value.outlier_detection.interval != null ? [1] : []
content {
seconds = each.value.outlier_detection.cache_key_policy.seconds
nanos = each.value.outlier_detection.cache_key_policy.nanos
seconds = each.value.outlier_detection.interval.seconds
nanos = each.value.outlier_detection.interval.nanos
}
}
}
Expand Down

0 comments on commit 34fbda9

Please sign in to comment.