Merge "Revert "Split command lines using shlex module""
This commit is contained in:
commit
0bf3a16c15
|
@ -16,7 +16,6 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
import subprocess
|
||||
import shlex
|
||||
|
||||
import six
|
||||
|
||||
|
@ -25,7 +24,7 @@ def shell_command(command):
|
|||
if isinstance(command, ShellCommand):
|
||||
return command
|
||||
elif isinstance(command, six.string_types):
|
||||
return ShellCommand(shlex.split(command, comments=True, posix=True))
|
||||
return ShellCommand(command.split())
|
||||
elif command:
|
||||
return ShellCommand(str(a) for a in command)
|
||||
else:
|
||||
|
|
|
@ -45,7 +45,7 @@ OPTIONS = [
|
|||
help=("Set to False to disable connecting to the "
|
||||
"SSH agent")),
|
||||
cfg.BoolOpt('compress',
|
||||
default=True,
|
||||
default=False,
|
||||
help="Set to True to turn on compression"),
|
||||
cfg.FloatOpt('timeout',
|
||||
default=10.,
|
||||
|
|
Loading…
Reference in New Issue