From e47d2f64df1d2993e1b9ea5ca0e4917d88f94884 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Thu, 30 Jun 2022 09:50:37 +0200 Subject: [PATCH] Try 07 --- go.mod | 1 - pkg/templater/services.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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)