Merge "Revert "Split command lines using shlex module""

This commit is contained in:
Zuul 2020-03-04 02:50:09 +00:00 committed by Gerrit Code Review
commit 0bf3a16c15
2 changed files with 2 additions and 3 deletions

View File

@ -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:

View File

@ -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.,