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

Unable to express list of maps as a literal in variables #29

Closed
w-miller opened this issue Jul 28, 2017 · 1 comment
Closed

Unable to express list of maps as a literal in variables #29

w-miller opened this issue Jul 28, 2017 · 1 comment

Comments

@w-miller
Copy link

A list of maps, such as the minimal test case below, should be parsed successfully, however an error occurs when attempting to parse such a structure with PyHCL.

sampleinput.tf:

resource = [{
    foo = [{
        bar = {}
    }]
}]

Output (PyHCL 0.3.6):
ValueError: Line 1, column 12: unexpected LEFTBRACE

This issue was reported and fixed for the golang parser last year. Test case assign_deep.hcl tests this structure, and for the golang parser this snippet is marked as valid. The same test case exists for PyHCL, however the same snippet is marked as invalid, meaning the test case appears to pass.

@virtuald
Copy link
Owner

Closed via #30

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

2 participants