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 (#2071)
Browse files Browse the repository at this point in the history
  • Loading branch information
kapouille authored and hasbro17 committed May 20, 2019
1 parent b2a63ce commit c3a9fa0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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

0 comments on commit c3a9fa0

Please sign in to comment.