Merge branch 'master' of https://github.com/cesanta/docker-py into cesanta-master

This commit is contained in:
Joffrey F 2015-06-19 22:36:23 +02:00
commit d70aa1e45c
1 changed files with 3 additions and 1 deletions

View File

@ -129,7 +129,9 @@ def ping(url):
except Exception: except Exception:
return False return False
else: else:
return res.status_code < 400 # We don't send yet auth headers
# and a v2 registry will respond with status 401
return res.status_code == 401 or res.status_code < 400
def _convert_port_binding(binding): def _convert_port_binding(binding):