mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 02:45:42 +03:00
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
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user