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