Storage: Fix initialization on windows (#57504) (#57577)

(cherry picked from commit 749b3b6263)

Co-authored-by: Artur Wierzbicki <artur.wierzbicki@grafana.com>
This commit is contained in:
Grot (@grafanabot)
2022-10-24 21:45:55 -04:00
committed by GitHub
co-authored by Artur Wierzbicki
parent 92fa1aba00
commit 7832a7579f
+2 -2
View File
@@ -2,7 +2,6 @@ package store
import (
"context"
"fmt"
"strings"
"github.com/grafana/grafana-plugin-sdk-go/data"
@@ -46,7 +45,8 @@ func newDiskStorage(meta RootStorageMeta, scfg RootStorageConfig) *rootStorageDi
}
if meta.Notice == nil {
path := fmt.Sprintf("file://%s", cfg.Path)
protocol := "file:///"
path := protocol + cfg.Path
bucket, err := blob.OpenBucket(context.Background(), path)
if err != nil {
grafanaStorageLogger.Warn("error loading storage", "prefix", scfg.Prefix, "err", err)