From aae83c4f26942f8c21e42e822e5af79250ba2c53 Mon Sep 17 00:00:00 2001 From: Dan Kozlowski Date: Wed, 4 Mar 2020 14:54:30 -0800 Subject: [PATCH] Fixing directory paths for azure blobs Signed-off-by: Dan Kozlowski --- go.mod | 3 --- go/vt/mysqlctl/azblobbackupstorage/azblob.go | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/go.mod b/go.mod index fa25d9ffc0a..fd56022ed1b 100644 --- a/go.mod +++ b/go.mod @@ -49,9 +49,6 @@ require ( github.com/mattn/go-isatty v0.0.11 // indirect github.com/mattn/go-runewidth v0.0.1 // indirect github.com/minio/minio-go v0.0.0-20190131015406-c8a261de75c1 - github.com/mitchellh/go-testing-interface v1.0.0 // indirect - github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect - github.com/modern-go/reflect2 v1.0.1 // indirect github.com/olekukonko/tablewriter v0.0.0-20160115111002-cca8bbc07984 github.com/opentracing-contrib/go-grpc v0.0.0-20180928155321-4b5a12d3ff02 github.com/opentracing/opentracing-go v1.1.0 diff --git a/go/vt/mysqlctl/azblobbackupstorage/azblob.go b/go/vt/mysqlctl/azblobbackupstorage/azblob.go index 4567fe823c1..fd6a7fe856b 100644 --- a/go/vt/mysqlctl/azblobbackupstorage/azblob.go +++ b/go/vt/mysqlctl/azblobbackupstorage/azblob.go @@ -244,7 +244,7 @@ func (bs *AZBlobBackupStorage) ListBackups(ctx context.Context, dir string) ([]b for _, subdir := range subdirs { result = append(result, &AZBlobBackupHandle{ bs: bs, - dir: dir, + dir: strings.Join([]string{dir, subdir}, "/"), name: subdir, readOnly: true, })