Skip to content

Commit

Permalink
fix: better github handling
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Lefevre <[email protected]>
  • Loading branch information
ArchiFleKs committed Feb 15, 2022
1 parent 53c5470 commit ecc8e5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
resource "vault_github_auth_backend" "github" {
for_each = var.github_auths
organization = each.value.organization
organization = try(each.value.organization, each.key)
path = try(each.value.path, null)
}

resource "vault_github_team" "github" {
for_each = var.github_roles_teams
backend = vault_github_auth_backend.github[each.key].id
backend = vault_github_auth_backend.github[each.value.organization].id
team = each.value.team
policies = try(each.value.policies, null)
}
Expand Down

0 comments on commit ecc8e5f

Please sign in to comment.