Add pipelining to podman connection plugin (#57579)

* Add pipelining to podman connection plugin

* Add changelog fragment
pull/59767/head
Jordan Webb 5 years ago committed by Felix Fontein
parent fd899956b4
commit 20c4ad3b95

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

@ -59,6 +59,7 @@ class Connection(ConnectionBase):
# String used to identify this Connection class from other classes # String used to identify this Connection class from other classes
transport = 'podman' transport = 'podman'
has_pipelining = True
def __init__(self, play_context, new_stdin, *args, **kwargs): def __init__(self, play_context, new_stdin, *args, **kwargs):
super(Connection, self).__init__(play_context, new_stdin, *args, **kwargs) super(Connection, self).__init__(play_context, new_stdin, *args, **kwargs)
@ -121,7 +122,7 @@ class Connection(ConnectionBase):
if self.user: if self.user:
cmd_args_list += ["--user", 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)) display.vvvvv("STDOUT %r STDERR %r" % (stderr, stderr))
return rc, stdout, stderr return rc, stdout, stderr

Loading…
Cancel
Save