From adba092f607fa749df861a586273ebfa1876246a Mon Sep 17 00:00:00 2001 From: Bryan Hendryx Date: Tue, 9 May 2023 09:24:01 -0400 Subject: [PATCH] Add Funcs() method to UpdateVirtualServerTemplate method (#3870) Co-authored-by: Ciara Stacke <18287516+ciarams87@users.noreply.github.com> --- 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 }