diff --git a/pkg/cwhub/hubMgmt.go b/pkg/cwhub/hubMgmt.go index b9957d3bc..e154dbde0 100644 --- a/pkg/cwhub/hubMgmt.go +++ b/pkg/cwhub/hubMgmt.go @@ -116,6 +116,10 @@ func parser_visit(path string, f os.FileInfo, err error) error { if f == nil || f.IsDir() { return nil } + //we only care about yaml files + if !strings.HasSuffix(f.Name(), ".yaml") && !strings.HasSuffix(f.Name(), ".yml") { + return nil + } subs := strings.Split(path, "/")