mirror of
https://github.com/minio/minio.git
synced 2025-11-26 12:36:13 -05:00
fix: relax some replication validations (#10210)
Also inherit storage class from source object if replication configuration does not have a storage class specified for destination bucket.
This commit is contained in:
@@ -145,11 +145,8 @@ func (c Config) FilterActionableRules(obj ObjectOpts) []Rule {
|
||||
|
||||
// GetDestination returns destination bucket and storage class.
|
||||
func (c Config) GetDestination() Destination {
|
||||
for _, rule := range c.Rules {
|
||||
if rule.Status == Disabled {
|
||||
continue
|
||||
}
|
||||
return rule.Destination
|
||||
if len(c.Rules) > 0 {
|
||||
return c.Rules[0].Destination
|
||||
}
|
||||
return Destination{}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user