updated linter and fixed deprecated stuff

This commit is contained in:
mslacken
2022-10-14 17:40:16 +02:00
parent b5d3de621b
commit ab0ee87629
21 changed files with 50 additions and 60 deletions

View File

@@ -3,7 +3,6 @@ package wwclient
import (
"errors"
"fmt"
"io/ioutil"
"log"
"net"
"net/http"
@@ -122,7 +121,7 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
x := smbiosDump.SystemEnclosure()
tag := strings.ReplaceAll(x.AssetTagNumber(), " ", "_")
cmdline, err := ioutil.ReadFile("/proc/cmdline")
cmdline, err := os.ReadFile("/proc/cmdline")
if err != nil {
wwlog.Error("Could not read from /proc/cmdline: %s", err)
os.Exit(1)