diff --git a/cmd/admin-service-restart.go b/cmd/admin-service-restart.go index cf82bd1b43..5795936158 100644 --- a/cmd/admin-service-restart.go +++ b/cmd/admin-service-restart.go @@ -269,6 +269,7 @@ func mainAdminServiceRestart(ctx *cli.Context) error { }) if e != nil { // Attempt an older API server might be old + //lint:ignore SA1019 We explicitly want old API. e = client.ServiceRestart(ctxt) } fatalIf(probe.NewError(e), "Unable to restart the server.") diff --git a/cmd/admin-service-unfreeze.go b/cmd/admin-service-unfreeze.go index cf45a359db..3bb5550ee8 100644 --- a/cmd/admin-service-unfreeze.go +++ b/cmd/admin-service-unfreeze.go @@ -74,7 +74,7 @@ func checkAdminServiceUnfreezeSyntax(ctx *cli.Context) { } func mainAdminServiceUnfreeze(ctx *cli.Context) error { - // Validate serivce unfreeze syntax. + // Validate service unfreeze syntax. checkAdminServiceUnfreezeSyntax(ctx) // Set color. @@ -89,7 +89,7 @@ func mainAdminServiceUnfreeze(ctx *cli.Context) error { fatalIf(err, "Unable to initialize admin connection.") // Unfreeze the specified MinIO server - fatalIf(probe.NewError(client.ServiceUnfreeze(globalContext)), "Unable to unfreeze the server.") + fatalIf(probe.NewError(client.ServiceUnfreezeV2(globalContext)), "Unable to unfreeze the server.") // Success.. printMsg(serviceUnfreezeCommand{Status: "success", ServerURL: aliasedURL})