Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module-swapper indentation #2091

Open
apeabody opened this issue Jan 16, 2024 · 1 comment
Open

module-swapper indentation #2091

apeabody opened this issue Jan 16, 2024 · 1 comment
Labels

Comments

@apeabody
Copy link
Collaborator

For block with more than source and version, after the swap the indentation maybe incorrect resulting in a lint error:

module "gce-lb-https" {
  project = var.project
  source  = "terraform-google-modules/lb-http/google"
  version = "~> 10.0"
module "gce-lb-https" {
  project = var.project
  source = "../.." # [restore-marker]   source  = "terraform-google-modules/lb-http/google"

A quick fix is to break up the block:

module "gce-lb-https" {
  source  = "terraform-google-modules/lb-http/google"
  version = "~> 10.0"

  project = var.project
Copy link
Contributor

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions bot added the Stale label Mar 16, 2024
@apeabody apeabody added triaged and removed Stale labels Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant