libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [1/4] libcloud git commit: check docker v1.23 API changes
Date Mon, 19 Jun 2017 00:23:02 GMT
Repository: libcloud
Updated Branches:
  refs/heads/trunk 238db6d96 -> 98c4fe0a0


check docker v1.23 API changes


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/29e82dc7
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/29e82dc7
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/29e82dc7

Branch: refs/heads/trunk
Commit: 29e82dc74cf5ec8c6ef70570ce3e670244f203b8
Parents: 0979444
Author: johnnyWalnut <ikarydis0@gmail.com>
Authored: Fri Apr 28 14:06:59 2017 +0300
Committer: Anthony Shaw <anthonyshaw@apache.org>
Committed: Mon Jun 19 10:21:38 2017 +1000

----------------------------------------------------------------------
 libcloud/container/drivers/docker.py | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/29e82dc7/libcloud/container/drivers/docker.py
----------------------------------------------------------------------
diff --git a/libcloud/container/drivers/docker.py b/libcloud/container/drivers/docker.py
index 877abe7..8fce78f 100644
--- a/libcloud/container/drivers/docker.py
+++ b/libcloud/container/drivers/docker.py
@@ -643,6 +643,8 @@ class DockerContainerDriver(ContainerDriver):
             state = ContainerState.STOPPED
         elif status.startswith('Up '):
             state = ContainerState.RUNNING
+        elif 'running' in status:
+            state = ContainerState.RUNNING
         else:
             state = ContainerState.STOPPED
         image = data.get('Image')


Mime
View raw message