Skip to content

Commit 448a545

Browse files
authored
blob/azblob: Pass nil instead of an empty map for tags on Copy operation (#2989)
1 parent 7b4db4c commit 448a545

File tree

5 files changed

+160
-176
lines changed

5 files changed

+160
-176
lines changed

blob/azureblob/azureblob.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,6 @@ func (b *bucket) Copy(ctx context.Context, dstKey, srcKey string, opts *driver.C
541541
mac := azblob.ModifiedAccessConditions{}
542542
bac := azblob.BlobAccessConditions{}
543543
at := azblob.AccessTierNone
544-
btm := azblob.BlobTagsMap{}
545544
if opts.BeforeCopy != nil {
546545
asFunc := func(i interface{}) bool {
547546
switch v := i.(type) {
@@ -561,7 +560,7 @@ func (b *bucket) Copy(ctx context.Context, dstKey, srcKey string, opts *driver.C
561560
return err
562561
}
563562
}
564-
resp, err := dstBlobURL.StartCopyFromURL(ctx, srcURL, md, mac, bac, at, btm)
563+
resp, err := dstBlobURL.StartCopyFromURL(ctx, srcURL, md, mac, bac, at, nil /* BlobTagsMap */)
565564
if err != nil {
566565
return err
567566
}

blob/azureblob/testdata/TestConformance/TestAs/verify_As_returns_false_when_passed_nil.replay

Lines changed: 45 additions & 48 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)