mirror of
https://github.com/rancher/rke.git
synced 2025-09-01 15:06:23 +00:00
Replace deprecated io/ioutil
Signed-off-by: Manuel Buil <mbuil@suse.com>
This commit is contained in:
4
main.go
4
main.go
@@ -4,7 +4,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"os"
|
||||
"regexp"
|
||||
|
||||
@@ -34,7 +34,7 @@ func mainErr() error {
|
||||
app.Usage = "Rancher Kubernetes Engine, an extremely simple, lightning fast Kubernetes installer that works everywhere"
|
||||
app.Before = func(ctx *cli.Context) error {
|
||||
if ctx.GlobalBool("quiet") {
|
||||
logrus.SetOutput(ioutil.Discard)
|
||||
logrus.SetOutput(io.Discard)
|
||||
} else {
|
||||
if ctx.GlobalBool("debug") {
|
||||
logrus.SetLevel(logrus.DebugLevel)
|
||||
|
Reference in New Issue
Block a user