You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by pq...@apache.org on 2010/02/24 06:59:24 UTC
svn commit: r915693 -
/incubator/libcloud/trunk/libcloud/drivers/rimuhosting.py
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)