mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-07-29 00:19:36 +00:00
Replace deprecated ioutil package (#6230)
* Replace ioutil package * check integration test null pointer * Remove rotate retries Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
@@ -3,7 +3,6 @@ package server
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
@@ -446,7 +445,7 @@ func writeToken(token, file, certs string) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return ioutil.WriteFile(file, []byte(token+"\n"), 0600)
|
||||
return os.WriteFile(file, []byte(token+"\n"), 0600)
|
||||
}
|
||||
|
||||
func setNoProxyEnv(config *config.Control) error {
|
||||
|
||||
Reference in New Issue
Block a user