setting storage-class to REDUCED_REDUNDANCY
This commit is contained in:
parent
a752c3c1dd
commit
01cc4abbf6
1 changed files with 3 additions and 1 deletions
|
@ -228,7 +228,9 @@ def send_file(bucket, filename, cmd, mesg):
|
||||||
|
|
||||||
fd = SlowFile(name=filename, mode='rb')
|
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
|
return k
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue