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

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
No known key found for this signature in database
GPG key ID: 78F1698C5705A81B

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'):