Author: tomaz
Date: Sat Apr 9 12:49:30 2011
New Revision: 1090579
URL: http://svn.apache.org/viewvc?rev=1090579&view=rev
Log:
Make sure both the numbers are integers.
Modified:
incubator/libcloud/trunk/libcloud/storage/base.py
Modified: incubator/libcloud/trunk/libcloud/storage/base.py
URL:
http://svn.apache.org/viewvc/incubator/libcloud/trunk/libcloud/storage/base.py?rev=1090579&r1=1090578&r2=1090579&view=diff
==============================================================================
--- incubator/libcloud/trunk/libcloud/storage/base.py (original)
+++ incubator/libcloud/trunk/libcloud/storage/base.py Sat Apr 9 12:49:30 2011
@@ -433,7 +433,7 @@ class StorageDriver(object):
except StopIteration:
data_read = ''
- if obj.size != bytes_transferred:
+ if int(obj.size) != int(bytes_transferred):
# Transfer failed, support retry?
if delete_on_failure:
try: