Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
fix panic on templater with fail result
Browse files Browse the repository at this point in the history
  • Loading branch information
n0rad committed Apr 4, 2018
1 parent 71b7b89 commit c699b43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin-templater/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ func Run(overrideEnvVarName string, target string, templaterDir string, continue
}
attributes = overrideWithJsonIfNeeded(overrideEnvVarName, attributes)
tt, err := merger.ProcessAttributesTemplating(attributes, attributes)
attributes = tt.(map[string]interface{})
if err != nil {
logs.WithField("dir", templaterDir+pathTemplates).Fatal("Failed to template attributes")
logs.WithEF(err, data.WithField("dir", templaterDir+pathTemplates)).Fatal("Failed to template attributes")
}
attributes = tt.(map[string]interface{})
logs.WithField("content", attributes).Debug("Final attributes resolution")

info, _ := os.Stat(templaterDir + pathTemplates)
Expand Down

0 comments on commit c699b43

Please sign in to comment.