amplify-education / python-hcl2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ternary with strings parse error

robeden opened this issue · 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.