Unverified Kaydet (Commit) 02c5914d authored tarafından Alfred Landrum's avatar Alfred Landrum

Update image create error parsing

Support new error message returned for image creation in:
https://github.com/moby/moby/pull/33005Signed-off-by: 's avatarAlfred Landrum <alfred@leakybucket.org>
üst 0a94e5a9
...@@ -23,7 +23,8 @@ def create_api_error_from_http_exception(e): ...@@ -23,7 +23,8 @@ def create_api_error_from_http_exception(e):
if response.status_code == 404: if response.status_code == 404:
if explanation and ('No such image' in str(explanation) or if explanation and ('No such image' in str(explanation) or
'not found: does not exist or no pull access' 'not found: does not exist or no pull access'
in str(explanation)): in str(explanation) or
'repository does not exist' in str(explanation)):
cls = ImageNotFound cls = ImageNotFound
else: else:
cls = NotFound cls = NotFound
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment