fix: trims spaces around remote agents and hosts (#3754)

This commit is contained in:
Amir Raminfar authored and GitHub committed 2025-04-03 10:16:13 -07:00
1 parent 2fc848254d
commit 8b4f5ea32d
1 file changed
+8
+8
View File
@@ -64,6 +64,14 @@ func ParseArgs() (Args, interface{}) {
args.Filter[key] = append(args.Filter[key], val)
}
for i, value := range args.RemoteAgent {
args.RemoteAgent[i] = strings.TrimSpace(value)
}
for i, value := range args.RemoteHost {
args.RemoteHost[i] = strings.TrimSpace(value)
}
if args.TimeoutString != "" {
timeout, err := time.ParseDuration(args.TimeoutString)
if err != nil {