diff options
| author | Nicolas Delaby <nicolas.delaby@ezeep.com> | 2014-01-31 16:12:01 +0100 |
|---|---|---|
| committer | Nicolas Delaby <nicolas.delaby@ezeep.com> | 2014-01-31 16:12:01 +0100 |
| commit | 51ead88e2ddfcb35b449851a42437cb541410295 (patch) | |
| tree | 1bd8a7098c4bb8e83a96f9efabe2b44ab1d29943 /docker/utils/utils.py | |
| parent | 0903ea3dd8192e5f7eeb6f6a7011ec1d8ca4d487 (diff) | |
| download | docker-py-51ead88e2ddfcb35b449851a42437cb541410295.tar.gz | |
A ping should be successful if status_code is less than 400
Diffstat (limited to 'docker/utils/utils.py')
| -rw-r--r-- | docker/utils/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/utils/utils.py b/docker/utils/utils.py index dbe437c..2b53439 100644 --- a/docker/utils/utils.py +++ b/docker/utils/utils.py @@ -60,7 +60,7 @@ def ping(url): except Exception: return False else: - return res.status_code >= 400 + return res.status_code < 400 def _convert_port_binding(binding): |
