Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

Commit

Permalink
Azure blob storage: use correct list prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
kapouille committed May 16, 2019
1 parent b2a63ce commit cc2f4e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/backup/writer/abs_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (absw *absWriter) Write(ctx context.Context, path string, r io.Reader) (int

func (absw *absWriter) List(ctx context.Context, basePath string) ([]string, error) {
// TODO: support context.
container, _, err := util.ParseBucketAndKey(basePath)
container, key, err := util.ParseBucketAndKey(basePath)
if err != nil {
return nil, err
}
Expand All @@ -118,7 +118,7 @@ func (absw *absWriter) List(ctx context.Context, basePath string) ([]string, err
}

blobs, err := containerRef.ListBlobs(
storage.ListBlobsParameters{Prefix: basePath})
storage.ListBlobsParameters{Prefix: key})
if err != nil {
return nil, err
}
Expand Down

0 comments on commit cc2f4e8

Please sign in to comment.