fixes for split overlays
Signed-off-by: Christian Goll <cgoll@suse.com>
This commit is contained in:
committed by
Jonathon Anderson
parent
c08cd82e68
commit
0c6e7cc58a
@@ -7,7 +7,6 @@ import (
|
||||
"strings"
|
||||
"syscall"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/spf13/cobra"
|
||||
warewulfconf "github.com/warewulf/warewulf/internal/pkg/config"
|
||||
"github.com/warewulf/warewulf/internal/pkg/hostlist"
|
||||
@@ -20,12 +19,12 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
|
||||
controller := warewulfconf.Get()
|
||||
nodeDB, err := node.New()
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "couldn't open node configuration")
|
||||
return fmt.Errorf("couldn't open node configuration: %s", err)
|
||||
}
|
||||
|
||||
db, err := nodeDB.FindAllNodes()
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "could not get node list")
|
||||
return fmt.Errorf("could not get node list: %s", err)
|
||||
}
|
||||
|
||||
if len(args) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user