@@ -115,7 +115,7 @@ resource "github_repository" "this" {
115
115
116
116
resource "github_repository_collaborator" "this" {
117
117
for_each = {
118
- for item in [
118
+ for item in flatten ( [
119
119
for repository , config in local . resources . config . github_repository . this : flatten ([
120
120
try (config. archived , false ) ? [
121
121
for member , config in local . resources . state . github_repository_collaborator . this : {
@@ -129,7 +129,7 @@ resource "github_repository_collaborator" "this" {
129
129
} if try (regex (" ^${ repository } :" , member), null ) != null
130
130
]
131
131
])
132
- ] : item. index => item. source
132
+ ]) : item. index => item. source
133
133
}
134
134
135
135
depends_on = [github_repository . this ]
@@ -145,7 +145,7 @@ resource "github_repository_collaborator" "this" {
145
145
146
146
resource "github_branch_protection" "this" {
147
147
for_each = {
148
- for item in [
148
+ for item in flatten ( [
149
149
for repository , config in local . resources . config . github_repository . this : flatten ([
150
150
try (config. archived , false ) ? [
151
151
for branch_protection , config in local . resources . state . github_branch_protection . this : {
@@ -159,7 +159,7 @@ resource "github_branch_protection" "this" {
159
159
} if try (regex (" ^${ repository } :" , branch_protection), null ) != null
160
160
]
161
161
])
162
- ] : item. index => item. source
162
+ ]) : item. index => item. source
163
163
}
164
164
165
165
depends_on = [github_repository . this ]
@@ -222,7 +222,7 @@ resource "github_team" "this" {
222
222
223
223
resource "github_team_repository" "this" {
224
224
for_each = {
225
- for item in [
225
+ for item in flatten ( [
226
226
for repository , config in local . resources . config . github_repository . this : flatten ([
227
227
try (config. archived , false ) ? [
228
228
for team , config in local . resources . state . github_team_repository . this : {
@@ -236,7 +236,7 @@ resource "github_team_repository" "this" {
236
236
} if try (regex (" :${ repository } $" , team), null ) != null
237
237
]
238
238
])
239
- ] : item. index => item. source
239
+ ]) : item. index => item. source
240
240
}
241
241
242
242
depends_on = [github_team . this , github_repository . this ]
@@ -275,7 +275,7 @@ resource "github_team_membership" "this" {
275
275
276
276
resource "github_repository_file" "this" {
277
277
for_each = {
278
- for item in [
278
+ for item in flatten ( [
279
279
for repository , config in local . resources . config . github_repository . this : flatten ([
280
280
try (config. archived , false ) ? [
281
281
for file , config in local . resources . state . github_repository_file . this : {
@@ -289,7 +289,7 @@ resource "github_repository_file" "this" {
289
289
} if try (regex (" ^${ repository } /" , file), null ) != null
290
290
]
291
291
])
292
- ] : item. index => item. source
292
+ ]) : item. index => item. source
293
293
}
294
294
295
295
depends_on = [github_repository . this ]
@@ -313,7 +313,7 @@ resource "github_repository_file" "this" {
313
313
314
314
resource "github_issue_label" "this" {
315
315
for_each = {
316
- for item in [
316
+ for item in flatten ( [
317
317
for repository , config in local . resources . config . github_repository . this : flatten ([
318
318
try (config. archived , false ) ? [
319
319
for label , config in local . resources . state . github_issue_label . this : {
@@ -327,7 +327,7 @@ resource "github_issue_label" "this" {
327
327
} if try (regex (" ^${ repository } :" , label), null ) != null
328
328
]
329
329
])
330
- ] : item. index => item. source
330
+ ]) : item. index => item. source
331
331
}
332
332
333
333
depends_on = [github_repository . this ]
0 commit comments