Skip to content

Commit

Permalink
Add Funcs() method to UpdateVirtualServerTemplate method (#3870)
Browse files Browse the repository at this point in the history
Co-authored-by: Ciara Stacke <18287516+ciarams87@users.noreply.github.com>
  • Loading branch information
coolbry95 and ciarams87 authored May 9, 2023
1 parent 19b8ad1 commit adba092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/configs/version2/template_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit adba092

Please sign in to comment.