fixed formating

Signed-off-by: Christian Goll <cgoll@suse.com>
This commit is contained in:
Christian Goll
2024-03-12 19:29:01 +01:00
parent 44c8a24ba8
commit 27c0297e5f

View File

@@ -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