libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r1091027 - /incubator/libcloud/trunk/libcloud/storage/drivers/s3.py
Date Mon, 11 Apr 2011 11:15:00 GMT
Author: tomaz
Date: Mon Apr 11 11:15:00 2011
New Revision: 1091027

URL: http://svn.apache.org/viewvc?rev=1091027&view=rev
Log:
Set body to empty string instead of None when location name is not specified.

Modified:
    incubator/libcloud/trunk/libcloud/storage/drivers/s3.py

Modified: incubator/libcloud/trunk/libcloud/storage/drivers/s3.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/storage/drivers/s3.py?rev=1091027&r1=1091026&r2=1091027&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/storage/drivers/s3.py (original)
+++ incubator/libcloud/trunk/libcloud/storage/drivers/s3.py Mon Apr 11 11:15:00 2011
@@ -216,7 +216,7 @@ class S3StorageDriver(StorageDriver):
             child.text = self.ex_location_name
             data = tostring(root)
         else:
-            data = None
+            data = ''
 
         response = self.connection.request('/%s' % (container_name),
                                            data=data,



Mime
View raw message