mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
don't parse empty stream chunks
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user