Revert "Split command lines using shlex module"

Since this causes a regression and breaks podman integration.
causing an infinite loop in the tobiko pomdan client

This reverts commit 05615d6487.

Change-Id: Id82d02718ebbe5abee408c18858204f1c49229c1
This commit is contained in:
Pini Komarov 2020-03-03 23:39:27 +00:00
parent 05615d6487
commit 1f4f65b8a3
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.,