Skip to content

Commit

Permalink
fix(clustertool): (re-)enable extra args on plain cmd generator
Browse files Browse the repository at this point in the history
  • Loading branch information
PrivatePuffin committed Nov 9, 2024
1 parent 1c5c1ee commit 3ad4105
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions clustertool/pkg/gencmd/plain.go
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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)
Expand Down

0 comments on commit 3ad4105

Please sign in to comment.