mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-09-12 19:07:24 +00:00
Stop relying on deprecated field when parsing image pulling errors. (#1302)
This commit is contained in:
@@ -995,7 +995,7 @@ class ImageManager(DockerBaseClass):
|
||||
self.log(line, pretty_print=True)
|
||||
self._extract_output_line(line, build_output)
|
||||
|
||||
if line.get("error"):
|
||||
if line.get("error") or line.get("errorDetail"):
|
||||
if line.get("errorDetail"):
|
||||
error_detail = line.get("errorDetail")
|
||||
self.fail(
|
||||
|
||||
Reference in New Issue
Block a user