You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by je...@apache.org on 2010/12/24 18:38:40 UTC

svn commit: r1052534 - /incubator/libcloud/trunk/libcloud/drivers/elastichosts.py

Author: jerry
Date: Fri Dec 24 17:38:40 2010
New Revision: 1052534

URL: http://svn.apache.org/viewvc?rev=1052534&view=rev
Log:
Remove trailing whitespace.

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

Modified: incubator/libcloud/trunk/libcloud/drivers/elastichosts.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/drivers/elastichosts.py?rev=1052534&r1=1052533&r2=1052534&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/drivers/elastichosts.py (original)
+++ incubator/libcloud/trunk/libcloud/drivers/elastichosts.py Fri Dec 24 17:38:40 2010
@@ -178,22 +178,22 @@ class ElasticHostsResponse(Response):
             raise InvalidCredsError()
 
         return self.status >= 200 and self.status <= 299
-    
+
     def parse_body(self):
         if not self.body:
             return self.body
-        
+
         try:
             data = json.loads(self.body)
         except:
             raise MalformedResponseError("Failed to parse JSON", body=self.body, driver=ElasticHostsBaseNodeDriver)
 
         return data
-    
+
     def parse_error(self):
         error_header = self.headers.get('x-elastic-error', '')
         return 'X-Elastic-Error: %s (%s)' % (error_header, self.body.strip())
-    
+
 class ElasticHostsNodeSize(NodeSize):
     def __init__(self, id, name, cpu, ram, disk, bandwidth, price, driver):
         self.id = id
@@ -215,7 +215,7 @@ class ElasticHostsBaseConnection(Connect
     """
     Base connection class for the ElasticHosts driver
     """
-    
+
     host = API_ENDPOINTS[DEFAULT_ENDPOINT]['host']
     responseCls = ElasticHostsResponse
 
@@ -286,10 +286,10 @@ class ElasticHostsBaseNodeDriver(NodeDri
 
         @keyword    name: String with a name for this new node (required)
         @type       name: C{string}
-        
+
         @keyword    smp: Number of virtual processors or None to calculate based on the cpu speed
         @type       smp: C{int}
-        
+
         @keyword    nic_model: e1000, rtl8139 or virtio (is not specified, e1000 is used)
         @type       nic_model: C{string}
 
@@ -451,5 +451,3 @@ class ElasticHostsUS1NodeDriver(ElasticH
     ElasticHosts node driver for the San Antonio Peer 1 end-point
     """
     connectionCls = ElasticHostsUS1Connection
-
-