diff --git a/clustertool/pkg/gencmd/plain.go b/clustertool/pkg/gencmd/plain.go index f28f395035b6..c0420d4004f6 100644 --- a/clustertool/pkg/gencmd/plain.go +++ b/clustertool/pkg/gencmd/plain.go @@ -1,6 +1,8 @@ package gencmd import ( + "strings" + "github.com/rs/zerolog/log" "github.com/truecharts/public/clustertool/embed" "github.com/truecharts/public/clustertool/pkg/helper" @@ -15,11 +17,11 @@ func GenPlain(command string, node string, extraArgs []string) []string { if node == "" { for _, noderef := range talassist.TalConfig.Nodes { - cmd := talosPath + " " + command + " --talosconfig " + helper.TalosConfigFile + " -n " + noderef.IPAddress // + " " + strings.Join(extraArgs, " ") + cmd := talosPath + " " + command + " --talosconfig " + helper.TalosConfigFile + " -n " + noderef.IPAddress + " " + strings.Join(extraArgs, " ") commands = append(commands, cmd) } } else { - cmd := talosPath + " " + command + " --talosconfig " + helper.TalosConfigFile + " -n " + node // + " " + strings.Join(extraArgs, " ") + cmd := talosPath + " " + command + " --talosconfig " + helper.TalosConfigFile + " -n " + node + " " + strings.Join(extraArgs, " ") commands = append(commands, cmd) } log.Debug().Msgf("%s Command rendered: %s", command, commands)