dashboards as cfg: type

This commit is contained in:
bergquist
2017-12-07 15:27:01 +01:00
parent 2a18345eb2
commit b28ea0b407
3 changed files with 7 additions and 7 deletions
@@ -26,7 +26,7 @@ type fileReader struct {
cache *gocache.Cache
}
func NewDashboardFilereader(cfg *DashboardsAsConfig, log log.Logger) (*fileReader, error) {
func NewDashboardFileReader(cfg *DashboardsAsConfig, log log.Logger) (*fileReader, error) {
path, ok := cfg.Options["folder"].(string)
if !ok {
return nil, fmt.Errorf("Failed to load dashboards. folder param is not a string")