Skip to content

module-swapper indentation #2091

@apeabody

Description

@apeabody

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions