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

Fix description key inside type #23

Merged
merged 1 commit into from
Oct 12, 2019
Merged

Fix description key inside type #23

merged 1 commit into from
Oct 12, 2019

Conversation

cytopia
Copy link
Owner

@cytopia cytopia commented Sep 27, 2019

Fix description key inside type

This PR fixes a when a key named description is inside the type block of a variable section:

variable "ingress_cidr_blocks" {
  description = "Bzzzzz"
  type = list(
    object({
      description = string
      cidr_blocks = string
      from_port   = number
      to_port     = number
      protocol    = string
    })
  )

  default = [
    {
      description = "SG"
      cidr_blocks = "10.0.0.0/32"
      from_port   = 22
      to_port     = 22
      protocol    = "tcp"
    },
  ]
}

Testing instructions

docker run --rm \
  -v $(pwd):/data \
  cytopia/terraform-docs:0.6.0-release-0.11 \
  terraform-docs-replace-012 \
    --sort-inputs-by-required \
    --with-aggregate-type-defaults md README.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant