Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tk3fftk committed Feb 6, 2024
1 parent 40fac71 commit 3eeedf8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/hcl_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func (p HCLParser) ConcatFile(baseDir string, pathes []string) (*hclwrite.File,

func setBodyAttribute(target *hclwrite.Body, name string, attr *hclwrite.Attribute) (*hclwrite.Body, error) {
tokens := attr.Expr().BuildTokens(nil)
// Do not want to treat as reference, traversal and cty.Value(literal) sogi use SetAttribute"Raw"
target.SetAttributeRaw(name, tokens)

return target, nil
Expand Down

0 comments on commit 3eeedf8

Please sign in to comment.