diff --git a/pkg/catalog/disk/find.go b/pkg/catalog/disk/find.go index 7a70c1bc1..0a89ba54c 100644 --- a/pkg/catalog/disk/find.go +++ b/pkg/catalog/disk/find.go @@ -257,7 +257,7 @@ func (c *DiskCatalog) findDirectoryMatches(absPath string, processed map[string] if err != nil { return nil } - if !d.IsDir() && config.GetTemplateFormatFromExt(path) != config.Unknown { + if !d.IsDir() && config.IsTemplate(path) { if _, ok := processed[path]; !ok { results = append(results, path) processed[path] = struct{}{} @@ -281,7 +281,7 @@ func (c *DiskCatalog) findDirectoryMatches(absPath string, processed map[string] if err != nil { return nil } - if !d.IsDir() && config.GetTemplateFormatFromExt(path) != config.Unknown { + if !d.IsDir() && config.IsTemplate(path) { if _, ok := processed[path]; !ok { results = append(results, path) processed[path] = struct{}{}