mirror of
https://github.com/minio/mc.git
synced 2025-11-28 08:03:56 +03:00
simplify wording for mc replicate edit and default sane values (#3980)
This commit is contained in:
@@ -42,7 +42,7 @@ var replicateEditFlags = []cli.Flag{
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "storage-class",
|
||||
Usage: "storage class for destination (STANDARD_IA,REDUCED_REDUNDANCY etc)",
|
||||
Usage: `storage class for destination, valid values are either "STANDARD" or "REDUCED_REDUNDANCY"`,
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "state",
|
||||
@@ -58,7 +58,7 @@ var replicateEditFlags = []cli.Flag{
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "replicate",
|
||||
Usage: "comma separated list to enable replication of delete markers, deletion of versioned objects and syncing replica metadata modifications.Valid options are \"delete-marker\", \"delete\",\"replica-metadata-sync\", \"existing-objects\" and \"\"",
|
||||
Usage: `comma separated list to enable replication of soft deletes, permanent deletes, existing objects and metadata sync. Valid options are "delete-marker","delete","existing-objects","metadata-sync" and ""'`,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -171,13 +171,13 @@ func mainReplicateEdit(cliCtx *cli.Context) error {
|
||||
dmReplicate = enableStatus
|
||||
case "delete":
|
||||
vDeleteReplicate = enableStatus
|
||||
case "replica-metadata-sync":
|
||||
case "metadata-sync", "replica-metadata-sync":
|
||||
replicasync = enableStatus
|
||||
case "existing-objects":
|
||||
existingReplState = enableStatus
|
||||
default:
|
||||
if opt != "" {
|
||||
fatalIf(probe.NewError(fmt.Errorf("invalid value for --replicate flag %s", cliCtx.String("replicate"))), "--replicate flag takes one or more comma separated string with values \"delete, delete-marker, replica-metadata-sync\" or \"\"")
|
||||
fatalIf(probe.NewError(fmt.Errorf("invalid value for --replicate flag %s", cliCtx.String("replicate"))), `--replicate flag takes one or more comma separated string with values "delete", "delete-marker", "metadata-sync", "existing-objects" or "" to disable these settings`)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user