cli/command/stack: remove deprecated io/ioutil

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit d59330f40d)
Signed-off-by: Cory Snider <csnider@mirantis.com>
This commit is contained in:
Sebastiaan van Stijn
2022-02-25 14:31:31 +01:00
committed by Cory Snider
parent b061531f8c
commit 7c6baba23b
11 changed files with 31 additions and 32 deletions

View File

@ -3,7 +3,6 @@ package loader
import (
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"sort"
@ -133,9 +132,9 @@ func loadConfigFile(filename string, stdin io.Reader) (*composetypes.ConfigFile,
var err error
if filename == "-" {
bytes, err = ioutil.ReadAll(stdin)
bytes, err = io.ReadAll(stdin)
} else {
bytes, err = ioutil.ReadFile(filename)
bytes, err = os.ReadFile(filename)
}
if err != nil {
return nil, err