Prevent loss of data. (#1152)

(cherry picked from commit ec5f7682a1)
This commit is contained in:
Felix Fontein 2025-10-07 22:05:05 +02:00 committed by patchback[bot]
parent 890986b00d
commit 9006e86fab
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

@ -61,7 +61,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):