Skip to content

Commit

Permalink
Use member as dynamic variable to avoid confusion with the members list.
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-schilling committed Jul 24, 2024
1 parent a9e312b commit 6661316
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -192,20 +192,20 @@ resource "github_team_members" "parents" {

team_id = github_team.parents[each.key].id

dynamic "members" {
dynamic "member" {
for_each = each.value.members

content {
username = members.value
username = member.value
role = "member"
}
}

dynamic "members" {
dynamic "member" {
for_each = each.value.maintainers

content {
username = members.value
username = member.value
role = "maintainer"
}
}
Expand All @@ -216,20 +216,20 @@ resource "github_team_members" "children" {

team_id = github_team.children[each.key].id

dynamic "members" {
dynamic "member" {
for_each = each.value.members

content {
username = members.value
username = member.value
role = "member"
}
}

dynamic "members" {
dynamic "member" {
for_each = each.value.maintainers

content {
username = members.value
username = member.value
role = "maintainer"
}
}
Expand Down

0 comments on commit 6661316

Please sign in to comment.