Skip to content

Commit

Permalink
Update github_branch.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
David Arnold authored and GitHub committed Aug 21, 2024
1 parent 6304343 commit e768418
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions github_branch.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,10 @@ resource "github_branch_protection" "main" {
}

dynamic "required_status_checks" {
# A bogus map for a conditional block
for_each = length(var.required_status_checks) > 0 ? ["*"] : []
for_each = var.required_status_checks == null ? [] : ["*"]
content {
contexts = var.required_status_checks
strict = true
contexts = required_status_checks.value.contexts
strict = required_status_checks.value.strict
}
}

Expand Down

0 comments on commit e768418

Please sign in to comment.