Merge branch 'development' into issue/608

This commit is contained in:
Jonathon Anderson
2023-05-16 01:11:32 -06:00
committed by GitHub
2 changed files with 8 additions and 0 deletions

View File

@@ -13,7 +13,9 @@ import (
apiutil "github.com/hpcng/warewulf/internal/pkg/api/util"
"github.com/hpcng/warewulf/internal/pkg/node"
"github.com/hpcng/warewulf/internal/pkg/util"
"github.com/hpcng/warewulf/internal/pkg/warewulfd"
"github.com/hpcng/warewulf/internal/pkg/wwlog"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"gopkg.in/yaml.v2"
)
@@ -131,5 +133,10 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
}
}
err = warewulfd.DaemonReload()
if err != nil {
return errors.Wrap(err, "failed to reload warewulf daemon")
}
return nil
}