Merge pull request #810 from JasonYangShadow/issue/691
fix wwctl node edit inconsistent state with warewulfd
This commit is contained in:
@@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
parameter. (#644)
|
parameter. (#644)
|
||||||
- Add support for listing profile/node via comma-separated values. #739
|
- Add support for listing profile/node via comma-separated values. #739
|
||||||
- Sort the node list returned entries by name.
|
- Sort the node list returned entries by name.
|
||||||
|
- 'wwctl node edit' inconsistent state with warewulfd. #691
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,9 @@ import (
|
|||||||
apiutil "github.com/hpcng/warewulf/internal/pkg/api/util"
|
apiutil "github.com/hpcng/warewulf/internal/pkg/api/util"
|
||||||
"github.com/hpcng/warewulf/internal/pkg/node"
|
"github.com/hpcng/warewulf/internal/pkg/node"
|
||||||
"github.com/hpcng/warewulf/internal/pkg/util"
|
"github.com/hpcng/warewulf/internal/pkg/util"
|
||||||
|
"github.com/hpcng/warewulf/internal/pkg/warewulfd"
|
||||||
"github.com/hpcng/warewulf/internal/pkg/wwlog"
|
"github.com/hpcng/warewulf/internal/pkg/wwlog"
|
||||||
|
"github.com/pkg/errors"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"gopkg.in/yaml.v2"
|
"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
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user