Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for RemoveRule (0.22 sec)

  1. cmd/site-replication.go

    		switch {
    		case hasRule:
    			if ruleARN != opts.DestBucket {
    				// remove stale replication rule and replace rule with correct target ARN
    				if len(replicationConfig.Rules) > 1 {
    					err = replicationConfig.RemoveRule(opts)
    				} else {
    					replicationConfig = replication.Config{}
    				}
    				if err == nil {
    					err = replicationConfig.AddRule(opts)
    				}
    			} else {
    				err = replicationConfig.EditRule(opts)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 185.1K bytes
    - Viewed (0)
Back to top