Resolve "problems" identified by vscode

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2025-02-06 22:05:23 -07:00
parent 19e5972b5c
commit ec453863d5
2 changed files with 4 additions and 3 deletions

View File

@@ -177,12 +177,12 @@ func Test_FindAllKernels(t *testing.T) {
}{ }{
"two images": { "two images": {
files: map[string][]string{ files: map[string][]string{
"image1": []string{ "image1": {
"/boot/vmlinuz-5.14.0-427.18.1.el9_4.x86_64", "/boot/vmlinuz-5.14.0-427.18.1.el9_4.x86_64",
"/boot/vmlinuz-5.14.0-427.24.1.el9_4.x86_64", "/boot/vmlinuz-5.14.0-427.24.1.el9_4.x86_64",
"/boot/vmlinuz-4.14.0-427.18.1.el8_4.x86_64", "/boot/vmlinuz-4.14.0-427.18.1.el8_4.x86_64",
}, },
"image2": []string{ "image2": {
"/boot/vmlinuz-0-rescue-eb46964329b146e39518c625feab3ea0", "/boot/vmlinuz-0-rescue-eb46964329b146e39518c625feab3ea0",
"/boot/vmlinuz-5.14.0-362.24.1.el9_3.aarch64", "/boot/vmlinuz-5.14.0-362.24.1.el9_3.aarch64",
"/boot/vmlinuz-5.14.0-427.31.1.el9_4.aarch64+debug", "/boot/vmlinuz-5.14.0-427.31.1.el9_4.aarch64+debug",

View File

@@ -6,7 +6,6 @@ import (
"crypto/sha256" "crypto/sha256"
"encoding/hex" "encoding/hex"
"fmt" "fmt"
"gopkg.in/yaml.v3"
"io" "io"
"io/fs" "io/fs"
"net" "net"
@@ -19,6 +18,8 @@ import (
"syscall" "syscall"
"time" "time"
"gopkg.in/yaml.v3"
"github.com/warewulf/warewulf/internal/pkg/wwlog" "github.com/warewulf/warewulf/internal/pkg/wwlog"
) )