Skip to content

Commit

Permalink
Do not validate the command does not contain spaces.
Browse files Browse the repository at this point in the history
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 hashicorp#1737
  • Loading branch information
dadgar authored and devendram committed Nov 14, 2016
1 parent 35cdfb4 commit 401fa40
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions client/driver/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 401fa40

Please sign in to comment.