diff --git a/go.mod b/go.mod index 53a982a..71790bf 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,6 @@ require ( github.com/gin-gonic/gin v1.8.1 github.com/hashicorp/hcl/v2 v2.11.1 github.com/imdario/mergo v0.3.13 - github.com/mitchellh/mapstructure v1.5.0 github.com/zclconf/go-cty v1.10.0 gopkg.in/ini.v1 v1.66.6 ) diff --git a/pkg/templater/services.go b/pkg/templater/services.go index db30e44..c396072 100644 --- a/pkg/templater/services.go +++ b/pkg/templater/services.go @@ -89,7 +89,7 @@ func processConfigFiles(tpls []ConfigFile, variables map[string]interface{}, tem } else if fileExt == ".tpl" { tpl.TemplateType = "go" } else { - return fmt.Errorf("Unsupported file extention %s, templates extensions have to be '.hcl' or '.tpl'", fileExt) + return fmt.Errorf("Unsupported file type %s, templates extensions have to be '.hcl' or '.tpl'", fileExt) } if err := tpl.Generate("/tmp/test", templateDir, values); err != nil { return fmt.Errorf("Template %s generation failed with error %v", tpl.Source, err)