hcl/test-fixtures/nested_provider_bad.hcl
James Nugent d41432d951 Return an error if object keys are not strings
This now gives an error instead of a panic when encountering
configuration such as described in hashicorp/terraform#5740:

```
resource "aws" "web" {
  provider = "aws" {
    region = "us-west-2"
  }
}
```

We now return an error message - "hcl object keys must be a string"
instead of crashing.

Fixes hashicorp/terraform#5740.
2016-03-21 13:32:31 +00:00

6 lines
75 B
HCL

resource "aws" "web" {
provider = "aws" {
region = "us-west-2"
}
}