Add pipelining to podman connection plugin

This commit is contained in:
Jordan Webb 2019-06-08 17:32:50 -05:00 committed by Toshio Kuratomi
parent ce59df01e3
commit 8af9c9ccc9
2 changed files with 4 additions and 1 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- The `podman` connection plugin now supports pipelining.

View file

@ -58,6 +58,7 @@ class Connection(ConnectionBase):
# String used to identify this Connection class from other classes
transport = 'podman'
has_pipelining = True
def __init__(self, play_context, new_stdin, *args, **kwargs):
super(Connection, self).__init__(play_context, new_stdin, *args, **kwargs)
@ -112,7 +113,7 @@ class Connection(ConnectionBase):
if self.user:
cmd_args_list += ["--user", self.user]
rc, stdout, stderr = self._podman("exec", cmd_args_list)
rc, stdout, stderr = self._podman("exec", cmd_args_list, in_data)
display.vvvvv("STDOUT %r STDERR %r" % (stderr, stderr))
return rc, stdout, stderr