libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [11/14] libcloud git commit: linting fixes
Date Sat, 25 Jun 2016 23:37:47 GMT
linting fixes


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

Branch: refs/heads/trunk
Commit: a99601a46695da946b2884d210243136699b4e6f
Parents: e829cfd
Author: Anthony Shaw <anthonyshaw@apache.org>
Authored: Sun Jun 26 09:33:06 2016 +1000
Committer: Anthony Shaw <anthonyshaw@apache.org>
Committed: Sun Jun 26 09:33:06 2016 +1000

----------------------------------------------------------------------
 libcloud/container/drivers/docker.py | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/a99601a4/libcloud/container/drivers/docker.py
----------------------------------------------------------------------
diff --git a/libcloud/container/drivers/docker.py b/libcloud/container/drivers/docker.py
index 1566c04..3143f8e 100644
--- a/libcloud/container/drivers/docker.py
+++ b/libcloud/container/drivers/docker.py
@@ -235,7 +235,8 @@ class DockerContainerDriver(ContainerDriver):
 
         :rtype: ``list`` of :class:`libcloud.container.base.ContainerImage`
         """
-        result = self.connection.request('v%s/images/json' % (self.version)).object
+        result = self.connection.request('v%s/images/json' %
+                                         (self.version)).object
         images = []
         for image in result:
             try:
@@ -351,7 +352,8 @@ class DockerContainerDriver(ContainerDriver):
 
         data = json.dumps(payload)
         try:
-            result = self.connection.request('v%s/containers/create' % self.version,
+            result = self.connection.request('v%s/containers/create'
+                                             % (self.version),
                                              data=data,
                                              params=params, method='POST')
         except Exception as e:
@@ -531,7 +533,9 @@ class DockerContainerDriver(ContainerDriver):
         else:
             result = self.connection.request(
                 "v%s/containers/%s/attach?logs=1&stream=%s&stdout=1&stderr=1"
%
-                (self.version, container.id, str(stream)), method='POST', data=data)
+                (self.version, container.id, str(stream)),
+                method='POST',
+                data=data)
             logs = result.body
 
         return logs


Mime
View raw message