change template delimiters

changed delimiters from "{{", "}}" to "{{+", "+}}", to avoid parsing the vault templates

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2022-05-08 22:31:09 +05:30
parent 6ff9524210
commit f58a33b0d8
2 changed files with 5 additions and 5 deletions

View File

@@ -48,7 +48,7 @@ func main() {
templFile, err := ioutil.ReadFile(templPath)
common.Check(err, "Could not read input file "+templPath)
if config.Params.Templating != false {
tmpl, err := template.New("job").Parse(string(templFile))
tmpl, err := template.New("job").Delims("{{+", "+}}").Parse(string(templFile))
common.Check(err, "Error parsing template")
for name, path := range config.Params.VarFiles {