Skip to content

Commit

Permalink
blob/azblob: Pass nil instead of an empty map for tags on Copy operat…
Browse files Browse the repository at this point in the history
…ion (#2989)
  • Loading branch information
vangent committed Apr 19, 2021
1 parent 7b4db4c commit 448a545
Show file tree
Hide file tree
Showing 5 changed files with 160 additions and 176 deletions.
3 changes: 1 addition & 2 deletions blob/azureblob/azureblob.go
Expand Up @@ -541,7 +541,6 @@ func (b *bucket) Copy(ctx context.Context, dstKey, srcKey string, opts *driver.C
mac := azblob.ModifiedAccessConditions{}
bac := azblob.BlobAccessConditions{}
at := azblob.AccessTierNone
btm := azblob.BlobTagsMap{}
if opts.BeforeCopy != nil {
asFunc := func(i interface{}) bool {
switch v := i.(type) {
Expand All @@ -561,7 +560,7 @@ func (b *bucket) Copy(ctx context.Context, dstKey, srcKey string, opts *driver.C
return err
}
}
resp, err := dstBlobURL.StartCopyFromURL(ctx, srcURL, md, mac, bac, at, btm)
resp, err := dstBlobURL.StartCopyFromURL(ctx, srcURL, md, mac, bac, at, nil /* BlobTagsMap */)
if err != nil {
return err
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 448a545

Please sign in to comment.