From a3e121c44724ea71941bac86323168b83478b75d Mon Sep 17 00:00:00 2001 From: Roman Dodin Date: Tue, 29 Jun 2021 14:15:29 +0200 Subject: [PATCH] namespace custom template module --- clab/config/template.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clab/config/template.go b/clab/config/template.go index 1c5310978..a24aff3f0 100644 --- a/clab/config/template.go +++ b/clab/config/template.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "github.com/kellerza/template" + jT "github.com/kellerza/template" log "github.com/sirupsen/logrus" "github.com/srl-labs/containerlab/types" @@ -36,7 +36,7 @@ func RenderAll(nodes map[string]*types.NodeConfig, links map[int]*types.Link) (m return nil, fmt.Errorf("please specify one of more paths with --template-path") } - tmpl, err := template.New("", template.SearchPath(TemplatePaths...)) + tmpl, err := jT.New("", jT.SearchPath(TemplatePaths...)) if err != nil { return nil, err }