Let docker-py decode pull response

pull/17873/head
Chris Houseknecht 8 years ago
parent 15ee97d214
commit fa7e572a96
No known key found for this signature in database
GPG Key ID: 78F1698C5705A81B

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

Loading…
Cancel
Save