mirror of https://github.com/smithy-lang/smithy-rs
Add more debug info to `acquire-build-image` (#1305)
This commit is contained in:
parent
6e63635e97
commit
102f30421e
|
@ -71,6 +71,10 @@ class Shell:
|
||||||
# Pulls the requested `image_name` with `image_tag`. Returns `DockerPullResult`.
|
# Pulls the requested `image_name` with `image_tag`. Returns `DockerPullResult`.
|
||||||
def docker_pull(self, image_name, image_tag):
|
def docker_pull(self, image_name, image_tag):
|
||||||
(status, output) = get_cmd_output(f"docker pull \"{image_name}:{image_tag}\"", check=False)
|
(status, output) = get_cmd_output(f"docker pull \"{image_name}:{image_tag}\"", check=False)
|
||||||
|
print("Docker pull output:")
|
||||||
|
print("-------------------")
|
||||||
|
print(output)
|
||||||
|
print("-------------------")
|
||||||
if status == 0:
|
if status == 0:
|
||||||
return DockerPullResult.SUCCESS
|
return DockerPullResult.SUCCESS
|
||||||
elif "toomanyrequests: Rate exceeded" in output:
|
elif "toomanyrequests: Rate exceeded" in output:
|
||||||
|
|
Loading…
Reference in New Issue