You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2011/04/11 13:15:00 UTC

svn commit: r1091027 - /incubator/libcloud/trunk/libcloud/storage/drivers/s3.py

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,