-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Labels
bugSomething isn't workingSomething isn't workingfixed-in-8.0this issue has been fixed in `transformer-overhaul` feature branch, to be released as v8.0this issue has been fixed in `transformer-overhaul` feature branch, to be released as v8.0reverse 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
bugSomething isn't workingSomething isn't workingfixed-in-8.0this issue has been fixed in `transformer-overhaul` feature branch, to be released as v8.0this issue has been fixed in `transformer-overhaul` feature branch, to be released as v8.0reverse 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