fixed linting

This commit is contained in:
Christian Goll
2022-03-02 10:38:07 +01:00
committed by Christian Goll
parent 8c7fd7d140
commit 23ba9ca61a
2 changed files with 5 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ import (
"os"
"github.com/hpcng/warewulf/internal/pkg/container"
"github.com/hpcng/warewulf/internal/pkg/wwlog"
"github.com/spf13/cobra"
)
@@ -15,7 +16,7 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
}
err := container.SyncUids(containerName)
if err != nil {
fmt.Sprint(err)
wwlog.Printf(wwlog.ERROR, "Error in synchronize: %s\n", err)
os.Exit(1)
}

View File

@@ -182,6 +182,9 @@ func SyncUids(name string) error {
}
return nil
})
if err != nil {
return err
}
}
}
// change uids and gid of file