Skip to content

Commit

Permalink
Refactor Terraform code for consistency and readability
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Arnold committed Jul 8, 2024
1 parent b6176dd commit 9be6fa5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions github_repo.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ locals {
repo_name = var.force_name ? var.name : "${var.name}-${formatdate("YYYYMMDD", timestamp())}"
}
moved {
from = "github_repository.repo"
to = "github_repository.repo_force_name"
}
resource "github_repository" "repo_force_name" {
count = var.force_name ? 1 : 0
name = local.repo_name
Expand Down

0 comments on commit 9be6fa5

Please sign in to comment.