datasource as cfg: setting for purging datasources not in cfg

This commit is contained in:
bergquist committed 2017-11-15 14:30:32 +01:00
1 parent 0f29b8ac83
commit 930da63173
3 files changed
+62 -14

No files matched your search

+1 -1
View File
@@ -56,7 +56,7 @@ func (g *GrafanaServerImpl) Start() {
g.writePIDFile()
initSql()
err, _ := dsSettings.Init(filepath.Join(setting.HomePath, "conf/datasources.yaml"))
err := dsSettings.Init(filepath.Join(setting.HomePath, "conf/datasources.yaml"))
if err != nil {
g.log.Error("Failed to load datasources from config", "error", err)
g.Shutdown(1, "Startup failed")