Skip to content

Commit

Permalink
refactored ranging
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Jul 15, 2021
1 parent a8a7182 commit 16c6b58
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clab/config/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ type NodeConfig struct {

// Load templates from all paths for the specific role/kind
func LoadTemplates(tmpl *template.Template, role string) error {
for i := range TemplatePaths {
p := TemplatePaths[i]
for _, p := range TemplatePaths {
if p == "@" {
p = "/etc/containerlab/templates/"
}
Expand Down

0 comments on commit 16c6b58

Please sign in to comment.