Prevent loss of data.

This commit is contained in:
Felix Fontein 2025-10-07 21:39:54 +02:00
parent 0acb773127
commit 1b420b04fb
2 changed files with 4 additions and 1 deletions

View File

@ -0,0 +1,3 @@
bugfixes:
- "docker_api connection plugin - fix bug that could lead to loss of data when waiting for ``become`` plugin prompt (https://github.com/ansible-collections/community.docker/pull/1152)."
- "docker_container_exec - fix bug that could lead to loss of stdout/stderr data (https://github.com/ansible-collections/community.docker/pull/1152)."

View File

@ -63,7 +63,7 @@ class DockerSocketHandlerBase(object):
self._block_done_callback = block_done_callback
if self._block_done_callback is not None:
while self._block_buffer:
elt = self._block_buffer.remove(0)
elt = self._block_buffer.pop(0)
self._block_done_callback(*elt)
def _add_block(self, stream_id, data):