Explorar el Código

Merge pull request #9913 from tomwilkie/dashboard-json-configmaps

Don't import JSON dashboards from hidden directories.
Carl Bergquist hace 8 años
padre
commit
3351f959d0
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      pkg/services/search/json_index.go

+ 3 - 0
pkg/services/search/json_index.go

@@ -90,6 +90,9 @@ func (index *JsonDashIndex) updateIndex() error {
 			return err
 		}
 		if f.IsDir() {
+			if strings.HasPrefix(f.Name(), ".") {
+				return filepath.SkipDir
+			}
 			return nil
 		}