[stable-2.8] Fix pipelining in buildah connection plugin

This commit is contained in:
Jordan Webb 2019-08-27 11:25:10 -05:00 committed by Toshio Kuratomi
parent ccd0b5bede
commit cc1bc400dd
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- Pipelining now works with the buildah plugin.

View file

@ -120,7 +120,7 @@ class Connection(ConnectionBase):
# shlex.split has a bug with text strings on Python-2.6 and can only handle text strings on Python-3
cmd_args_list = shlex.split(to_native(cmd, errors='surrogate_or_strict'))
rc, stdout, stderr = self._buildah("run", cmd_args_list)
rc, stdout, stderr = self._buildah("run", cmd_args_list, in_data)
display.vvvvv("STDOUT %r STDERR %r" % (stderr, stderr))
return rc, stdout, stderr