Skip to content

Commit

Permalink
ds
Browse files Browse the repository at this point in the history
  • Loading branch information
kellerza committed May 25, 2021
1 parent 8b6330e commit b4248c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clab/config/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ var funcMap = map[string]interface{}{
case []string:
return strings.Join(v, sep), nil
case []int, []int16, []int32:
return strings.Trim(strings.Replace(fmt.Sprint(v), " ", sep, -1), "[]"), nil
return strings.Trim(strings.ReplaceAll(fmt.Sprint(v), " ", sep), "[]"), nil
}
return nil, fmt.Errorf("expected array [], got %v", val)
},
Expand Down
2 changes: 1 addition & 1 deletion clab/config/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type ConfigSnippet struct {
// internal template cache
var templates map[string]*template.Template

func LoadTemplate(kind string, templatePath string) error {
func LoadTemplate(kind, templatePath string) error {
if templates == nil {
templates = make(map[string]*template.Template)
}
Expand Down

0 comments on commit b4248c5

Please sign in to comment.