Skip to content

Commit

Permalink
Fix FmtTemplate Execute data map values
Browse files Browse the repository at this point in the history
  • Loading branch information
albertorm95 committed Dec 9, 2022
1 parent 4fc1170 commit 23531a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion terraform/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (p *DefaultParser) Parse(body string) ParseResult {
func (p *FmtParser) Parse(body string) ParseResult {
result := ParseResult{}
if p.Fail.MatchString(body) {
result.Result = body
result.Result = "There is diff in your .tf file (need to be formatted)"
result.ExitCode = ExitFail
}
return result
Expand Down
4 changes: 2 additions & 2 deletions terraform/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ func (t *FmtTemplate) Execute() (string, error) {
data := map[string]interface{}{
"Title": t.Title,
"Message": t.Message,
"Result": "",
"Body": t.Result,
"Result": t.Result,
"Body": t.Body,
"Link": t.Link,
}

Expand Down

0 comments on commit 23531a2

Please sign in to comment.