-
Notifications
You must be signed in to change notification settings - Fork 56
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
HCL interpolations within dict output contain single quotes #172
Comments
This is actually true for many different Python datatypes - booleans appear in this output as |
…o match Terraform syntax instead of Python (fixes amplify-education#172)
Thank you for maintaining this project, it has been a great help for my work! I think I'm hitting this bug or something similar. I have a Terraform file with stuff like this in it:
When I parse the file with the hcl2 library it gave me this value:
I added some code to remove the
In other words, I'm getting not only the unwanted After digging around and finding a different environment without the problem, I realized that the broken environment had lark 1.1.9 while the working one had lark 1.2.2. So I'm back to the first case with just the I hope this data point is useful. |
…o match Terraform syntax instead of Python (fixes amplify-education#172)
HCL only supports double quotes, but some interpolations may contain single quotes.
Example hcl:
Expected output:
Actual output (note the difference in quotes):
I plan to fix this in a future PR, just creating this issue for tracking purposes.
The text was updated successfully, but these errors were encountered: