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

Hash Block Not Properly Supported #9

Open
darkn3rd opened this issue Apr 3, 2018 · 0 comments
Open

Hash Block Not Properly Supported #9

darkn3rd opened this issue Apr 3, 2018 · 0 comments

Comments

@darkn3rd
Copy link

darkn3rd commented Apr 3, 2018

Proper HCL hash blocks documented from Hashicorp are flagged as an error.

STEPS

Create a block like this below:

  boot_disk {
    initialize_params {
      image = "debian-cloud/debian-8"
    }
  }

This snippet came from: https://www.terraform.io/docs/providers/google/r/compute_instance.html

ACTUAL RESULTS

The second brace after initialize_params is highlighted in red.

EXPECTED RESULTS

The second parameter would not be flagged and highlighted. There is an implicit equals in the current HCL language.

WORKAROUND

You have to explicitly add the =. This will make the code inconsistent with current Hashicorp documentation.

  boot_disk {
    initialize_params = {
      image = "debian-cloud/debian-8"
    }
  }
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

No branches or pull requests

1 participant