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 05615d6487100372565f950c9a63a61ab16d211d. Change-Id: Id82d02718ebbe5abee408c18858204f1c49229c1
This commit is contained in:
parent
05615d6487
commit
1f4f65b8a3
@ -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…
x
Reference in New Issue
Block a user