python-hcl2
python-hcl2 copied to clipboard
Ternary with strings parse error
The following TF doesn't parse correctly:
foo = "true" ? "correct" : "wrong"
I would expect it to return:
{'foo': ['"true" ? "correct" : "wrong"']}
but instead this is returned:
{'foo': ['true" ? "correct" : "wrong']}
Note that the leading quote on "true" and the trailing quote on "wrong" have been dropped.