mirror of
https://github.com/grafana/grafana.git
synced 2025-01-16 11:42:35 -06:00
Don't import JSON dashboards from hidden directories.
This commit is contained in:
parent
6595be95eb
commit
0015183a7b
@ -90,6 +90,9 @@ func (index *JsonDashIndex) updateIndex() error {
|
||||
return err
|
||||
}
|
||||
if f.IsDir() {
|
||||
if strings.HasPrefix(f.Name(), ".") {
|
||||
return filepath.SkipDir
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user