when --all --force is specified, send request to server even if replication config is not found to allow stale target cleanup
Community Contribution License
All community contributions in this pull request are licensed to the project maintainers
under the terms of the Apache 2 license.
By creating this pull request I represent that I have the right to license the
contributions to the project maintainers under the Apache 2 license.
Description
Motivation and Context
proper cleanup of partially created replication config.
How to test this PR?
need a 2022 mc version which allowed separate remote target creation before use in replication rule. add a target, then use latest to mc replicate rm --all --force on a bucket where repl.config is not configured. It should clean up all targets for the bucket (see mc admin bucket remote ls output of older mc)
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Optimization (provides speedup with no functional changes)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[ ] Fixes a regression (If yes, please add commit-id or PR # here)
when --all --force is specified, send request to server even if replication config is not found to allow stale target cleanup
Community Contribution License
All community contributions in this pull request are licensed to the project maintainers under the terms of the Apache 2 license. By creating this pull request I represent that I have the right to license the contributions to the project maintainers under the Apache 2 license.
Description
Motivation and Context
proper cleanup of partially created replication config.
How to test this PR?
need a 2022 mc version which allowed separate remote target creation before use in replication rule. add a target, then use latest to
mc replicate rm --all --force
on a bucket where repl.config is not configured. It should clean up all targets for the bucket (see mc admin bucket remote ls output of older mc)Types of changes
Checklist:
commit-id
orPR #
here)