File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1168,8 +1168,8 @@ section {
1168
1168
title = " Variables Configuration"
1169
1169
1170
1170
variable "variables" {
1171
- type = map (string )
1172
- default = {}
1171
+ type = map (string )
1172
+ default = {}
1173
1173
description = <<- END
1174
1174
Map of Github Action variables to create for this repository.
1175
1175
Original file line number Diff line number Diff line change @@ -231,10 +231,10 @@ resource "github_branch_protection" "branch_protection" {
231
231
}
232
232
}
233
233
234
+ # BD-670 restrict_pushes runs zero times if no data exists
234
235
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 ) ], [])
236
237
iterator = this
237
-
238
238
content {
239
239
# TODO(v7): remove backwards compat attrs (push_restrictions, blocks_creations)
240
240
blocks_creations = try (this. value . blocks_creations , var. branch_protections_v4 [each . value ]. blocks_creations , true )
You can’t perform that action at this time.
0 commit comments