Skip to content

Commit

Permalink
fixing regression bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Levinson committed Oct 5, 2017
1 parent 28d71e0 commit 8e6c20b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
8 changes: 6 additions & 2 deletions command/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ func CmdBuild(c *cli.Context) {
os.RemoveAll(env.TfScriptsDir())
os.MkdirAll(env.TfScriptsDir(), 0755)

finalTFTemplate, err := printer.Format(competition.RenderTB("infra.tf", &tb))
raw := competition.RenderTB("infra.tf", &tb)

finalTFTemplate, err := printer.Format(raw)
if err != nil {
competition.LogFatal("Terraform Configuration Syntax Error - Contact alex ASAP.")
competition.LogError("Terraform Configuration Syntax Error: " + err.Error())
competition.LogPlain(string(raw))
competition.LogFatal(" - Contact alex ASAP.")
}

ioutil.WriteFile(env.TfFile(), finalTFTemplate, 0644)
Expand Down
Loading

0 comments on commit 8e6c20b

Please sign in to comment.