mirror of
https://github.com/grafana/grafana.git
synced 2025-02-11 16:15:42 -06:00
Merge pull request #9913 from tomwilkie/dashboard-json-configmaps
Don't import JSON dashboards from hidden directories.
This commit is contained in:
commit
3351f959d0
@ -90,6 +90,9 @@ func (index *JsonDashIndex) updateIndex() error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if f.IsDir() {
|
if f.IsDir() {
|
||||||
|
if strings.HasPrefix(f.Name(), ".") {
|
||||||
|
return filepath.SkipDir
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user