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

Azure blob storage: use correct list prefix #2071

Merged
merged 1 commit into from
May 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
### Fixed

- Don't expose unready nodes via client service. [#2063](https://github.com/coreos/etcd-operator/pull/2063)
- Azure blob storage: use correct list prefix [#2071](https://github.com/coreos/etcd-operator/pull/2071)

### Deprecated

Expand Down
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