Skip to content

Commit

Permalink
Update resources.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
galargh authored Feb 15, 2024
1 parent 7384598 commit 57d867b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions terraform/resources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ resource "github_repository" "this" {
for_each = {
for repository, config in lookup(local.config, "repositories", {}) : lower(repository) =>
try(config.archived, false) ?
local.state["managed.github_repository.this.${repository}"] :
merge(config, {
tomap(local.state["managed.github_repository.this.${repository}"]) :
tomap(merge(config, {
name = repository
security_and_analysis = (try(config.visibility, "private") == "public" || local.advanced_security) ? [
{
Expand All @@ -42,7 +42,7 @@ resource "github_repository" "this" {
}
]
template = try([config.template], [])
})
}))
}

name = each.value.name
Expand Down

0 comments on commit 57d867b

Please sign in to comment.