Linting fixes called-out by vscode

A few linting issues that were called out by vscode.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2025-01-19 05:26:43 -07:00
parent 96396ed47e
commit 4be3e6db9f
5 changed files with 31 additions and 31 deletions

View File

@@ -97,7 +97,7 @@ func Test_listFields(t *testing.T) {
"tag": "value",
},
NetDevs: map[string]*NetDev{
"default": &NetDev{
"default": {
Tags: map[string]string{
"nettag": "netvalue",
},
@@ -154,7 +154,7 @@ func Test_listFields(t *testing.T) {
"tag": "value",
},
NetDevs: map[string]*NetDev{
"default": &NetDev{
"default": {
Tags: map[string]string{
"nettag": "netvalue",
},

View File

@@ -13,7 +13,7 @@ import (
/*
Create a ignition struct class for ignition
*/
func (node *Node) GetStorage() (stor types_3_4.Storage, err error, rep string) {
func (node *Node) GetStorage() (stor types_3_4.Storage, rep string, err error) {
var fileSystems []types_3_4.Filesystem
for fsdevice, fs := range node.FileSystems {
var mountOptions []types_3_4.MountOption
@@ -142,7 +142,7 @@ type SimpleIgnitionConfig struct {
Get a simple config which can be marshalled to json
*/
func (node *Node) GetConfig() (conf SimpleIgnitionConfig, rep string, err error) {
conf.Storage, err, rep = node.GetStorage()
conf.Storage, rep, err = node.GetStorage()
conf.Ignition.Version = "3.1.0"
return
}