Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mv: Do not error out when a bucket has an object lock config #4654

Merged
merged 1 commit into from
Aug 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions cmd/mv-main.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,18 +238,6 @@ func mainMove(cliCtx *cli.Context) error {
}
}

// Check if source URLs does not have object locking enabled
// since we cannot move them (remove them from the source)
for _, urlStr := range cliCtx.Args()[:cliCtx.NArg()-1] {
enabled, err := isBucketLockEnabled(ctx, urlStr)
if err != nil {
fatalIf(err.Trace(), "Unable to get bucket lock configuration of `%s`", urlStr)
}
if enabled {
fatalIf(errDummy().Trace(), fmt.Sprintf("Object lock configuration is enabled on the specified bucket in alias %v.", urlStr))
}
}

// Additional command speific theme customization.
console.SetColor("Copy", color.New(color.FgGreen, color.Bold))

Expand Down
Loading