Browse Source

typo: return actual error from RemoveRemoteTargetsForEndpoint (#21238)

pull/21241/head
Burkov Egor 3 months ago
committed by GitHub
parent
commit
93c389dbc9
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      cmd/site-replication.go

4
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

Loading…
Cancel
Save