Skip to content
This repository was archived by the owner on Dec 21, 2024. It is now read-only.

Commit bdc9ab2

Browse files
authored
Fix bad index access (#21)
Signed-off-by: Yuchan Lee <lasuillard@gmail.com>
1 parent 7b09412 commit bdc9ab2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ module "rulesets" {
253253
}
254254

255255
resource "github_repository_tag_protection" "this" {
256-
for_each = toset(var.tag_protections)
256+
for_each = var.create ? toset(var.tag_protections) : []
257257

258258
repository = github_repository.this[0].name
259259
pattern = each.value

0 commit comments

Comments
 (0)