From 3715613a47dfd791ad5c909bb9e7525ea4e50f32 Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Thu, 10 Nov 2016 10:22:17 -0800 Subject: [PATCH] Do not validate the command does not contain spaces. This PR removes validation that the command string does not contain spaces. This can cause issues where the path contains a folder that includes a space ("C:\Program Files\Python35\python.exe"). Fixes #1737 --- client/driver/utils.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/client/driver/utils.go b/client/driver/utils.go index 562e3165e5f7..0e6fc2883d0c 100644 --- a/client/driver/utils.go +++ b/client/driver/utils.go @@ -118,11 +118,6 @@ func validateCommand(command, argField string) error { return fmt.Errorf("command contains extra white space: %q", command) } - split := strings.Split(trimmed, " ") - if len(split) != 1 { - return fmt.Errorf("command contained more than one input. Use %q field to pass arguments", argField) - } - return nil }