From 7832a7579f1e70cdc1b1f3297163d4b990a2c8bf Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Tue, 25 Oct 2022 03:45:55 +0200 Subject: [PATCH] Storage: Fix initialization on windows (#57504) (#57577) (cherry picked from commit 749b3b62631e89b07a592ec922447b1c9158afa5) Co-authored-by: Artur Wierzbicki --- pkg/services/store/storage_disk.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/services/store/storage_disk.go b/pkg/services/store/storage_disk.go index 7ac33428a1d..c5baa7824a2 100644 --- a/pkg/services/store/storage_disk.go +++ b/pkg/services/store/storage_disk.go @@ -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)