Skip to content

Commit 8b4f5ea

Browse files
authored
fix: trims spaces around remote agents and hosts (#3754)
1 parent 2fc8482 commit 8b4f5ea

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

internal/support/cli/args.go

+8
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@ func ParseArgs() (Args, interface{}) {
6464
args.Filter[key] = append(args.Filter[key], val)
6565
}
6666

67+
for i, value := range args.RemoteAgent {
68+
args.RemoteAgent[i] = strings.TrimSpace(value)
69+
}
70+
71+
for i, value := range args.RemoteHost {
72+
args.RemoteHost[i] = strings.TrimSpace(value)
73+
}
74+
6775
if args.TimeoutString != "" {
6876
timeout, err := time.ParseDuration(args.TimeoutString)
6977
if err != nil {

0 commit comments

Comments
 (0)