libcloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject svn commit: r908031 - /incubator/libcloud/trunk/libcloud/drivers/vpsnet.py
Date Tue, 09 Feb 2010 13:50:27 GMT
Author: jerry
Date: Tue Feb  9 13:50:27 2010
New Revision: 908031

URL: http://svn.apache.org/viewvc?rev=908031&view=rev
Log:
80-col formatting update: drivers/vpsnet.py

Modified:
    incubator/libcloud/trunk/libcloud/drivers/vpsnet.py

Modified: incubator/libcloud/trunk/libcloud/drivers/vpsnet.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/drivers/vpsnet.py?rev=908031&r1=908030&r2=908031&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/drivers/vpsnet.py (original)
+++ incubator/libcloud/trunk/libcloud/drivers/vpsnet.py Tue Feb  9 13:50:27 2010
@@ -17,7 +17,8 @@
 """
 from libcloud.providers import Provider
 from libcloud.types import NodeState, InvalidCredsException
-from libcloud.base import Node, Response, ConnectionUserAndKey, NodeDriver, NodeSize, NodeImage,
NodeLocation
+from libcloud.base import Node, Response, ConnectionUserAndKey, NodeDriver
+from libcloud.base import NodeSize, NodeImage, NodeLocation
 
 import base64
 
@@ -155,8 +156,9 @@
         return sizes
 
     def destroy_node(self, node):
-        res = self.connection.request('/virtual_machines/%s.%s' % (node.id, API_VERSION),
-                                        method='DELETE')
+        res = self.connection.request('/virtual_machines/%s.%s'
+                                      % (node.id, API_VERSION),
+                                      method='DELETE')
         return res.status == 200
 
     def list_nodes(self):
@@ -170,7 +172,8 @@
         for cloud in res.object:
             label = cloud['cloud']['label']
             templates = cloud['cloud']['system_templates']
-            images.extend([self._to_image(image, label) for image in templates])
+            images.extend([self._to_image(image, label)
+                           for image in templates])
 
         return images
 



Mime
View raw message