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

@@ -1,7 +1,6 @@
package container
import (
"io/ioutil"
"os"
"github.com/pkg/errors"
@@ -27,7 +26,7 @@ func ListSources() ([]string, error) {
}
wwlog.Debug("Searching for VNFS Rootfs directories: %s", SourceParentDir())
sources, err := ioutil.ReadDir(SourceParentDir())
sources, err := os.ReadDir(SourceParentDir())
if err != nil {
return ret, err
}