-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Labels
available-in-prereleasefixed in the latest pre-release version. Install with: pip install python-hcl2 --pre --upgradefixed in the latest pre-release version. Install with: pip install python-hcl2 --pre --upgradebugSomething isn't workingSomething isn't workingreverse transformationtransformationThe issue is related to logic of transforming Lark AST into Python data structureThe issue is related to logic of transforming Lark AST into Python data structure
Description
Using version 7.2.1
The following Python code:
import hcl2
my_hcl = """toto = {
"john/doh" = {}
}
"""
tf_vars = hcl2.loads(my_hcl)
hcl2.writes(hcl2.reverse_transform(tf_vars))Produces:
'toto = {\n john/doh = {}\n}\n'
hence not keeping the quotes on"john/doh" and generating incorrect hcl.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
available-in-prereleasefixed in the latest pre-release version. Install with: pip install python-hcl2 --pre --upgradefixed in the latest pre-release version. Install with: pip install python-hcl2 --pre --upgradebugSomething isn't workingSomething isn't workingreverse transformationtransformationThe issue is related to logic of transforming Lark AST into Python data structureThe issue is related to logic of transforming Lark AST into Python data structure