()
| 61 | } |
| 62 | |
| 63 | func (m resyncCancelMessage) String() string { |
| 64 | v := madmin.SRResyncOpStatus(m) |
| 65 | messages := []string{} |
| 66 | th := "ResyncMessage" |
| 67 | if v.ErrDetail != "" { |
| 68 | messages = append(messages, v.ErrDetail) |
| 69 | th = "ResyncErr" |
| 70 | } else { |
| 71 | messages = append(messages, fmt.Sprintf("Site resync with ID %s canceled successfully.", v.ResyncID)) |
| 72 | } |
| 73 | return console.Colorize(th, strings.Join(messages, "\n")) |
| 74 | } |
| 75 | |
| 76 | func mainAdminReplicateResyncCancel(ctx *cli.Context) error { |
| 77 | // Check argument count |