mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 03:00:23 -07:00
Merge pull request #6767 from mway/devel
don't parse empty stream chunks
This commit is contained in:
commit
b489fbfbf6
1 changed files with 3 additions and 0 deletions
|
@ -137,6 +137,9 @@ class DockerImageManager:
|
||||||
self.changed = True
|
self.changed = True
|
||||||
|
|
||||||
for chunk in stream:
|
for chunk in stream:
|
||||||
|
if not chunk:
|
||||||
|
continue
|
||||||
|
|
||||||
chunk_json = json.loads(chunk)
|
chunk_json = json.loads(chunk)
|
||||||
|
|
||||||
if 'error' in chunk_json:
|
if 'error' in chunk_json:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue