mirror of https://github.com/docker/cli.git
cli/command/system: remove deprecated io/ioutil
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit e0299ff862
)
Signed-off-by: Cory Snider <csnider@mirantis.com>
This commit is contained in:
parent
b5cd20f67a
commit
3d4a0c1612
|
@ -4,7 +4,6 @@ import (
|
|||
"context"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"sort"
|
||||
"strings"
|
||||
"text/template"
|
||||
|
@ -100,7 +99,7 @@ func makeTemplate(format string) (*template.Template, error) {
|
|||
}
|
||||
// we execute the template for an empty message, so as to validate
|
||||
// a bad template like "{{.badFieldString}}"
|
||||
return tmpl, tmpl.Execute(ioutil.Discard, &eventtypes.Message{})
|
||||
return tmpl, tmpl.Execute(io.Discard, &eventtypes.Message{})
|
||||
}
|
||||
|
||||
// rfc3339NanoFixed is similar to time.RFC3339Nano, except it pads nanoseconds
|
||||
|
|
Loading…
Reference in New Issue