setting storage-class to REDUCED_REDUNDANCY

This commit is contained in:
Ryan Tucker 2010-05-19 08:52:37 -04:00
parent a752c3c1dd
commit 01cc4abbf6

View file

@ -228,7 +228,9 @@ def send_file(bucket, filename, cmd, mesg):
fd = SlowFile(name=filename, mode='rb')
k.set_contents_from_file(fd, cb=handle_progress)
putHeaders = {'x-amz-storage-class': 'REDUCED_REDUNDANCY'}
k.set_contents_from_file(fd, headers=putHeaders, cb=handle_progress)
return k