Merge pull request #1231 from mslacken/Fix1230

Call SSH(keys) on configure --all
This commit is contained in:
Jonathon Anderson
2024-06-03 20:21:27 -06:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

@@ -50,6 +50,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Fix installation docs to use github.com/warewulf instead of github.com/hpcng. #1219
- Fix the issue that warewulf.conf parse does not support CIDR format. #1130
- Reduce the number of times syncuser walks the container file system. #1209
- Create ssh key also when calling `wwctl configure --all` #1250
### Security

View File

@@ -4,6 +4,7 @@ import (
"os"
"github.com/spf13/cobra"
warewulfconf "github.com/warewulf/warewulf/internal/pkg/config"
"github.com/warewulf/warewulf/internal/pkg/configure"
"github.com/warewulf/warewulf/internal/pkg/wwlog"
)
@@ -23,7 +24,7 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
os.Exit(1)
}
err = configure.SSH()
err = configure.SSH(warewulfconf.Get().SSH.KeyTypes...)
if err != nil {
wwlog.Error("%s", err)
os.Exit(1)