python-hcl2 icon indicating copy to clipboard operation
python-hcl2 copied to clipboard

Ternary with strings parse error

Open robeden opened this issue 4 years ago • 0 comments

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.

robeden avatar Feb 10 '21 23:02 robeden