Skip to content

Commit 140483a

Browse files
committed
fix: test with amach module change
1 parent 7b4b7a1 commit 140483a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.tfdoc.hcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,8 +1168,8 @@ section {
11681168
title = "Variables Configuration"
11691169

11701170
variable "variables" {
1171-
type = map(string)
1172-
default = {}
1171+
type = map(string)
1172+
default = {}
11731173
description = <<-END
11741174
Map of Github Action variables to create for this repository.
11751175

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,10 @@ resource "github_branch_protection" "branch_protection" {
231231
}
232232
}
233233

234+
# BD-670 restrict_pushes runs zero times if no data exists
234235
dynamic "restrict_pushes" {
235-
for_each = try([var.branch_protections_v4[each.value].restrict_pushes], [])
236+
for_each = try([coalesce(var.branch_protections_v4[each.value].restrict_pushes, null)], [])
236237
iterator = this
237-
238238
content {
239239
# TODO(v7): remove backwards compat attrs (push_restrictions, blocks_creations)
240240
blocks_creations = try(this.value.blocks_creations, var.branch_protections_v4[each.value].blocks_creations, true)

0 commit comments

Comments
 (0)