mirror of https://github.com/docker/cli.git
cli/command/registry: remove deprecated io/ioutil
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 3b3a0b898f
)
Signed-off-by: Cory Snider <csnider@mirantis.com>
This commit is contained in:
parent
d06eafc516
commit
0dfc5567bc
|
@ -3,7 +3,7 @@ package registry
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/docker/cli/cli"
|
"github.com/docker/cli/cli"
|
||||||
|
@ -84,7 +84,7 @@ func verifyloginOptions(dockerCli command.Cli, opts *loginOptions) error {
|
||||||
return errors.New("Must provide --username with --password-stdin")
|
return errors.New("Must provide --username with --password-stdin")
|
||||||
}
|
}
|
||||||
|
|
||||||
contents, err := ioutil.ReadAll(dockerCli.In())
|
contents, err := io.ReadAll(dockerCli.In())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue