mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 07:01:22 -07:00
Merge pull request #17873 from chouseknecht/fix_3964
Let docker-py decode pull response
This commit is contained in:
commit
ab93d5aae4
1 changed files with 1 additions and 2 deletions
|
@ -446,8 +446,7 @@ class AnsibleDockerClient(Client):
|
||||||
'''
|
'''
|
||||||
self.log("Pulling image %s:%s" % (name, tag))
|
self.log("Pulling image %s:%s" % (name, tag))
|
||||||
try:
|
try:
|
||||||
for line in self.pull(name, tag=tag, stream=True):
|
for line in self.pull(name, tag=tag, stream=True, decode=True):
|
||||||
line = json.loads(line)
|
|
||||||
self.log(line, pretty_print=True)
|
self.log(line, pretty_print=True)
|
||||||
if line.get('error'):
|
if line.get('error'):
|
||||||
if line.get('errorDetail'):
|
if line.get('errorDetail'):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue