Browse Source
typo: return actual error from RemoveRemoteTargetsForEndpoint (#21238)
pull/21241/head
Burkov Egor
3 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
cmd/site-replication.go
|
|
@ -2591,11 +2591,11 @@ func (c *SiteReplicationSys) RemoveRemoteTargetsForEndpoint(ctx context.Context, |
|
|
|
} |
|
|
|
targets, terr := globalBucketTargetSys.ListBucketTargets(ctx, t.SourceBucket) |
|
|
|
if terr != nil { |
|
|
|
return err |
|
|
|
return terr |
|
|
|
} |
|
|
|
tgtBytes, terr := json.Marshal(&targets) |
|
|
|
if terr != nil { |
|
|
|
return err |
|
|
|
return terr |
|
|
|
} |
|
|
|
if _, err = globalBucketMetadataSys.Update(ctx, t.SourceBucket, bucketTargetsFile, tgtBytes); err != nil { |
|
|
|
return err |
|
|
|