mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Merge pull request #17873 from chouseknecht/fix_3964
Let docker-py decode pull response
This commit is contained in:
@@ -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'):
|
||||
|
||||
Reference in New Issue
Block a user