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:
parent
15ee97d214
commit
fa7e572a96
1 changed files with 1 additions and 2 deletions
|
@ -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…
Reference in a new issue