1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

don't parse empty stream chunks

This commit is contained in:
Matt Way 2014-03-30 15:27:29 -04:00
parent f96618c967
commit 034ac93ca2

View file

@ -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: