Files
warewulf/internal/app/wwctl/configure/ssh/main.go
Christian Goll 21150d2975 make created ssh keys configureable
Signed-off-by: Christian Goll <cgoll@suse.com>
2024-05-01 14:27:39 -06:00

15 lines
360 B
Go

package ssh
import (
"github.com/spf13/cobra"
warewulfconf "github.com/warewulf/warewulf/internal/pkg/config"
"github.com/warewulf/warewulf/internal/pkg/configure"
)
func CobraRunE(cmd *cobra.Command, args []string) error {
if len(keyTypes) == 0 {
keyTypes = append(keyTypes, warewulfconf.Get().SSH.KeyTypes...)
}
return configure.SSH(keyTypes...)
}