diff --git a/internal/app/wwclient/root.go b/internal/app/wwclient/root.go index ad258a6f..7cd728bc 100644 --- a/internal/app/wwclient/root.go +++ b/internal/app/wwclient/root.go @@ -156,7 +156,7 @@ func CobraRunE(cmd *cobra.Command, args []string) (err error) { // Dereference wwid from [interface] for cases that cannot have /proc/cmdline set by bootloader if string(wwid[0]) == "[" { - iface := wwid[1:len(wwid)-1] + iface := wwid[1 : len(wwid)-1] wwid_tmp, err := os.ReadFile(fmt.Sprintf("/sys/class/net/%s/address", iface)) if err != nil { wwlog.Error("'wwid' cannot be dereferenced from /sys/class/net", iface) @@ -166,7 +166,6 @@ func CobraRunE(cmd *cobra.Command, args []string) (err error) { wwlog.Info("Dereferencing wwid from [%s] to %s", iface, wwid) } - duration := 300 if conf.Warewulf.UpdateInterval > 0 { duration = conf.Warewulf.UpdateInterval