From cc72977361c042c57998cd48e0ed21eaaec95470 Mon Sep 17 00:00:00 2001 From: David Caputo Date: Sun, 1 Sep 2024 16:12:06 -0400 Subject: [PATCH] Fix azure storage restore by removing hardcoded trailing slash --- pkg/pxc/backup/storage/storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/pxc/backup/storage/storage.go b/pkg/pxc/backup/storage/storage.go index 81c676d107..8768894450 100644 --- a/pkg/pxc/backup/storage/storage.go +++ b/pkg/pxc/backup/storage/storage.go @@ -235,7 +235,7 @@ func (a *Azure) PutObject(ctx context.Context, name string, data io.Reader, _ in } func (a *Azure) ListObjects(ctx context.Context, prefix string) ([]string, error) { - listPrefix := path.Join(a.prefix, prefix) + "/" + listPrefix := path.Join(a.prefix, prefix) pg := a.client.NewListBlobsFlatPager(a.container, &container.ListBlobsFlatOptions{ Prefix: &listPrefix, })