libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r1103445 - /incubator/libcloud/trunk/libcloud/storage/drivers/cloudfiles.py
Date Sun, 15 May 2011 16:20:28 GMT
Author: tomaz
Date: Sun May 15 16:20:28 2011
New Revision: 1103445

URL: http://svn.apache.org/viewvc?rev=1103445&view=rev
Log:
Properly set object hash value when using get_object method in the CloudFiles
storage driver.

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

Modified: incubator/libcloud/trunk/libcloud/storage/drivers/cloudfiles.py
URL: http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/storage/drivers/cloudfiles.py?rev=1103445&r1=1103444&r2=1103445&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/storage/drivers/cloudfiles.py (original)
+++ incubator/libcloud/trunk/libcloud/storage/drivers/cloudfiles.py Sun May 15 16:20:28 2011
@@ -476,10 +476,9 @@ class CloudFilesStorageDriver(StorageDri
                 key = key.replace('x-object-meta-', '')
                 meta_data[key] = value
 
-        extra = { 'content_type': content_type, 'last_modified': last_modified,
-                  'etag': etag }
+        extra = { 'content_type': content_type, 'last_modified': last_modified }
 
-        obj = Object(name=name, size=size, hash=None, extra=extra,
+        obj = Object(name=name, size=size, hash=etag, extra=extra,
                      meta_data=meta_data, container=container, driver=self)
         return obj
 



Mime
View raw message