Let docker-py decode pull response

This commit is contained in:
Chris Houseknecht
2016-10-03 11:38:12 -04:00
parent 15ee97d214
commit fa7e572a96

View File

@@ -446,8 +446,7 @@ class AnsibleDockerClient(Client):
'''
self.log("Pulling image %s:%s" % (name, tag))
try:
for line in self.pull(name, tag=tag, stream=True):
line = json.loads(line)
for line in self.pull(name, tag=tag, stream=True, decode=True):
self.log(line, pretty_print=True)
if line.get('error'):
if line.get('errorDetail'):