fix(clustertool): (re-)enable extra args on plain cmd generator
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
package gencmd
|
package gencmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"strings"
|
||||||
|
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
"github.com/truecharts/public/clustertool/embed"
|
"github.com/truecharts/public/clustertool/embed"
|
||||||
"github.com/truecharts/public/clustertool/pkg/helper"
|
"github.com/truecharts/public/clustertool/pkg/helper"
|
||||||
@@ -15,11 +17,11 @@ func GenPlain(command string, node string, extraArgs []string) []string {
|
|||||||
if node == "" {
|
if node == "" {
|
||||||
|
|
||||||
for _, noderef := range talassist.TalConfig.Nodes {
|
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)
|
commands = append(commands, cmd)
|
||||||
}
|
}
|
||||||
} else {
|
} 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)
|
commands = append(commands, cmd)
|
||||||
}
|
}
|
||||||
log.Debug().Msgf("%s Command rendered: %s", command, commands)
|
log.Debug().Msgf("%s Command rendered: %s", command, commands)
|
||||||
|
|||||||
Reference in New Issue
Block a user