summaryrefslogtreecommitdiff
path: root/vendor/github.com/minio/minio-go/v7/pkg/replication
diff options
context:
space:
mode:
authorLibravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2024-07-08 07:59:07 +0000
committerLibravatar GitHub <noreply@github.com>2024-07-08 07:59:07 +0000
commit43c480aec45e14f8a616db881e01fb009850bbc9 (patch)
tree24bb28334f55f05781d966cd1fbfa5bea8b029b0 /vendor/github.com/minio/minio-go/v7/pkg/replication
parent[chore]: Bump golang.org/x/net from 0.26.0 to 0.27.0 (#3082) (diff)
downloadgotosocial-43c480aec45e14f8a616db881e01fb009850bbc9.tar.xz
[chore]: Bump github.com/minio/minio-go/v7 from 7.0.72 to 7.0.73 (#3083)
Diffstat (limited to 'vendor/github.com/minio/minio-go/v7/pkg/replication')
-rw-r--r--vendor/github.com/minio/minio-go/v7/pkg/replication/replication.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/vendor/github.com/minio/minio-go/v7/pkg/replication/replication.go b/vendor/github.com/minio/minio-go/v7/pkg/replication/replication.go
index 0abbf6efc..65a2f75e9 100644
--- a/vendor/github.com/minio/minio-go/v7/pkg/replication/replication.go
+++ b/vendor/github.com/minio/minio-go/v7/pkg/replication/replication.go
@@ -406,6 +406,9 @@ func (c *Config) EditRule(opts Options) error {
return fmt.Errorf("priority must be unique. Replication configuration already has a rule with this priority")
}
if rule.Destination.Bucket != newRule.Destination.Bucket && rule.ID == newRule.ID {
+ if c.Role == newRule.Destination.Bucket {
+ continue
+ }
return fmt.Errorf("invalid destination bucket for this rule")
}
}