Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
EstyFridman1 committed Aug 8, 2024
1 parent 680fff0 commit 01af9d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/terraform/structure/terraform_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ func (p *TerraformParser) parseTagAttribute(tokens hclwrite.Tokens) map[string]s
hclData := new(Resource)
hclBytes := tokens.Bytes()
hclBytes = []byte(strings.Replace(string(hclBytes), "{", " tags= {", 1))
dethcl.Unmarshal((hclBytes), hclData)
_ = dethcl.Unmarshal((hclBytes), hclData)
tempHclData, _ := dethcl.Marshal(hclData)
hclFile, _ := hclwrite.ParseConfig(tempHclData, "", hcl.InitialPos)
tagsAttribute := hclFile.Body().GetAttribute("tags")
Expand Down

0 comments on commit 01af9d8

Please sign in to comment.