Skip to content

Commit

Permalink
Merge pull request #76 from sparkfabrik/correction
Browse files Browse the repository at this point in the history
refs platform/3059: fix condition
  • Loading branch information
Syphon83 authored Aug 9, 2024
2 parents e76e590 + f96c986 commit c48224c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ resource "google_storage_bucket" "gitlab_bucket" {
}
}
dynamic "soft_delete_policy" {
for_each = var.gcs_bucket_soft_delete_retention >= 604800 && var.gcs_bucket_soft_delete_retention <= 7776000 ? [1] : []
for_each = var.gcs_bucket_soft_delete_retention == 0 || (var.gcs_bucket_soft_delete_retention >= 604800 && var.gcs_bucket_soft_delete_retention <= 7776000) ? [1] : []
content {
retention_duration_seconds = var.gcs_bucket_soft_delete_retention
}
Expand Down

0 comments on commit c48224c

Please sign in to comment.