From c7e7e9657e9b12ed2486209564248596ac4b0769 Mon Sep 17 00:00:00 2001 From: Bryan Hendryx Date: Fri, 5 May 2023 13:15:16 -0400 Subject: [PATCH] Add Funcs() method to UpdateVirtualServerTemplate method --- internal/configs/version2/template_executor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/configs/version2/template_executor.go b/internal/configs/version2/template_executor.go index f395118e09..473fb8840e 100644 --- a/internal/configs/version2/template_executor.go +++ b/internal/configs/version2/template_executor.go @@ -48,7 +48,7 @@ func NewTemplateExecutor(virtualServerTemplatePath string, transportServerTempla // UpdateVirtualServerTemplate updates the VirtualServer template. func (te *TemplateExecutor) UpdateVirtualServerTemplate(templateString *string) error { - newTemplate, err := template.New("virtualServerTemplate").Parse(*templateString) + newTemplate, err := template.New("virtualServerTemplate").Funcs(helperFunctions).Parse(*templateString) if err != nil { return err }