libcloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r915693 - /incubator/libcloud/trunk/libcloud/drivers/rimuhosting.py
Date Wed, 24 Feb 2010 05:59:24 GMT
Author: pquerna
Date: Wed Feb 24 05:59:24 2010
New Revision: 915693

URL: http://svn.apache.org/viewvc?rev=915693&view=rev
Log:
Fix slicehost driver for the same bug that was fixed in rackspace with r915692.

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

Modified: incubator/libcloud/trunk/libcloud/drivers/rimuhosting.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/drivers/rimuhosting.py?rev=915693&r1=915692&r2=915693&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/drivers/rimuhosting.py (original)
+++ incubator/libcloud/trunk/libcloud/drivers/rimuhosting.py Wed Feb 24 05:59:24 2010
@@ -89,7 +89,11 @@
         headers['Authorization'] = 'rimuhosting apikey=%s' % (self.key)
         return headers;
 
-    def request(self, action, params={}, data='', headers={}, method='GET'):
+    def request(self, action, params=None, data='', headers=None, method='GET'):
+        if not headers:
+            headers = {}
+        if not params:
+            params = {}
         # Override this method to prepend the api_context
         return ConnectionKey.request(self, self.api_context + action,
                                      params, data, headers, method)



Mime
View raw message